mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 9
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 9
I need to make a script that automatically kills any user that joins a particular channel. I have that much working, but how do I exclude myself?

This is what I have now.

on *:join:#spambotsgohere:{
kill $nick No spamming on this server
}

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
from the help file

The ! prefix
You can prevent an event from being triggered if it was initiated by you by using the ! prefix.

ctcp !2:HELP:*:/msg $nick You have accessed a level 2 event


Joined: Mar 2003
Posts: 9
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 9
Thanks. Worked perfectly.

Joined: Aug 2003
Posts: 18
Z
z0r Offline
Pikka bird
Offline
Pikka bird
Z
Joined: Aug 2003
Posts: 18
Even though there's already an alternate here,
Code:
 
on *:join:#spambotsgohere:{
  if ($nick != $me) {
    kill $nick No spamming on this server
  }
}
 


Link Copied to Clipboard