It is currently 9. April 2020 18:47

All times are UTC + 1 hour




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Multiquery with wildmask nick support
PostPosted: 17. September 2010 20:20 
Administrator
User avatar

Joined: 17. March 2008 13:32
Posts: 96
Location: Arnstadt, Germany
; put into remote
; allows: /query <nick1,nick2,nick3> [text]
;
; changes also the query name to the correct nick format if possible
; if it works, it was written by me, if not, i don't know who wrote it ;)
; Allowing query for wildmask nicks too if
; for example:
;    /query You*
; It will query the first nick matching that wildmask
alias query {
  if ($1 == -n) { set %qminimize $true | tokenize 32 $2- }
  var %x = $2-
  if (, isin $1) { !tokenize 44 $1 | Ÿ $* %x }
  else { Ÿ $$1 %x }
  unset %qminimize
}
alias -l Ÿ {
  !.query $$1
  if ($ial($1 $+ !*@*).nick) {
    !var %n = $v1
    if ($query(%n) && %n != $1) { !window -c $1 | if (!%qminimize) { !window -a %n } }
    else { !queryrn $1 %n | if (!%qminimize) { !window -a %n } }
    tokenize 32 %n $2-
  }
  elseif (!%qminimize) { !window -a $1 }
  if ($len($2)) { !msg $1 $2- }
}



_________________
one step closer to world domination
Cyberscripters Administrator/Founder
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron