mIRC Home    About    Download    Register    News    Help

Print Thread
#261105 31/07/17 03:27 PM
Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
I have a chatter-lets call him Bob, who changes his name to RogueBob..I want my bot to say "Run Bob has gone Rogue" when he changes his name to that. Possible?

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Code:
on *:NICK:{ if (*rogue iswm $newnick) msg $chan Run $remove($newnick,Rogue) has gone Rogue }


Note: in ON NICK, $nick is the old nick and $newnick is the new.

Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
isn't working...Not sure why

Joined: Jul 2006
Posts: 4,144
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
Use rogue*, not *rogue


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard