mIRC Home    About    Download    Register    News    Help

Print Thread
Perform a command when I change my nick? #99537 02/10/04 04:34 PM
Joined: Oct 2004
Posts: 2
R
Rainy Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Oct 2004
Posts: 2
Anyone know how I can write a script that will perform a command whenever I change my nick?

Thanks

Re: Perform a command when I change my nick? #99538 02/10/04 04:48 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
on 1:NICK: {
if ($nick == $me) { command }
}
add that to remote, press ALT + R in mirc..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Perform a command when I change my nick? #99539 02/10/04 04:48 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
You can try this: on me:*:nick: { commands.. }

Zyzzyx smile

Edit: sparta beat me to it :P

Last edited by Zyzzyx26; 02/10/04 04:49 PM.

"All we are saying is give peace a chance" -- John Lennon
Re: Perform a command when I change my nick? #99540 02/10/04 06:23 PM
Joined: Oct 2004
Posts: 2
R
Rainy Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Oct 2004
Posts: 2
Thanks guys...works like a charm. grin