mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2012
Posts: 1
A
Amalyne Offline OP
Mostly harmless
OP Offline
Mostly harmless
A
Joined: Jul 2012
Posts: 1
I was wondering if there is a way to make a respond on text that ignores text from certain users in the channel? I've been using an auto responder for whenever someone highlights me user name but recently a bot has been added to the channel that sometimes calls out users in the channel and I want the script to ignore the bot. Is there a way to do this without adding the bot on to ignore? Thanks. The one i'm using right now is currently:

on *:text:*username*:#:say # Hey what's up?

Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
just add a little condition to the event:
Code:
on *:text:*username*:#:if ($nick != bot_nick) say # hey $nick what's up
If you want to add more than one nick to the exception's list, use $istok:
Code:
on *:text:*username*:#:if (!$istok(bot_nick nick2 nick3 etc,$nick,32)) say # hey $nick what's up


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
It should've been msg # instead of say #

plus the help file indicates that the say command cannot be used in the remote section.

Last edited by Tomao; 22/07/12 05:46 AM.

Link Copied to Clipboard