mIRC Home    About    Download    Register    News    Help

Print Thread
#160779 30/09/06 01:36 PM
Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
Code:
 

on ^!*:text:*:#test: { if ($nick isreg #) { 
    var %n = 1
    while (%n < $numtok(%ex,44) {
      if ($nick != $gettok(%ex,44) {
        .msg $nick $1- 
      } 
    }
  }
}

 


I need if someone msg #test and he or she not on %ex list and i will mimic by msg his/her private.

#160780 30/09/06 01:49 PM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
try something like..

on *:TEXT:*:#test:{
if ($nick isreg $chan) && (!$istok(%ex,$nick,32)) { .msg $nick $1- }
}

%ex = SomeNick AnotherNick AnotherPerson JesusLives AnotherNick2

What this does is sees if the nick is a regular user, and if they do not match any nick name in the %ex variable then it will message them.

(untested so I'm not for sure if this will work.)


Live to Dream & Dream for Life
#160781 30/09/06 05:43 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
$istok would be the better choice as mentioned, but in the code you gave, it doesn't work because you're missing a parameter in $gettok()

1: Text
2: Token Number <-- Missing (should be %n with your code)
3: Separator


Link Copied to Clipboard