mIRC Home    About    Download    Register    News    Help

Print Thread
How do I exclude myself from an onjoin script? #73388 02/03/04 06:25 PM
Joined: Mar 2003
Posts: 9
M
Mike_Healan Offline OP
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
}

Re: How do I exclude myself from an onjoin script? #73389 02/03/04 06:35 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
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


Re: How do I exclude myself from an onjoin script? #73390 02/03/04 09:57 PM
Joined: Mar 2003
Posts: 9
M
Mike_Healan Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 9
Thanks. Worked perfectly.

Re: How do I exclude myself from an onjoin script? #73391 06/03/04 10:22 PM
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
  }
}