mIRC Home    About    Download    Register    News    Help

Print Thread
E
Exlax
Exlax
E
In my script there are 3 options: all chans, only these chans ..., all but these chans ...
So for all chans i use /amsg
But how could I do this to either only do it in certain chans, or all but certain chans?

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
/emsg <channels not to message> <message here>
eg: /emsg #test,#test2 hello!
Code:
alias emsg { 
  var %m $2-
  tokenize 44 $1
  var %i 1
  while $chan(%i) {
    if !$findtok($chan(%i),$1-,1,32) { msg $chan(%i) %m }
    inc %i
  }
}

/omsg <channels to message> <message here>
eg: /omsg #test,#test2 hello!
Code:
alias omsg { 
  var %m $2-
  tokenize 44 $1
  var %i 1
  while $chan(%i) {
    if $findtok($chan(%i),$1-,1,32) { msg $chan(%i) %m }
    inc %i
  }
}


-untested


Link Copied to Clipboard