mIRC Home    About    Download    Register    News    Help

Print Thread
#136666 01/12/05 06:28 AM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
ive been looking through commands after commands. and cannot seem to find exactly how to script this. ive even looked around.
on me changing my nick i want to do 1 action or more. thats all. its soo simple. i just cant find how to do it (im still learning) thankyou for your time

Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
I'm nor sure that I understand you completely.. so if this is off, my apologies.
Code:
on *:NICK:{ if ($newnick == $me) { action's here }
}

where as $nick is the old nick, and $newnick is the new nick. If this is incorrect, try explaing more in depthy what you're trying to accomplish.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Another possibility is
Code:
on me:*:nick:{
;commands & actions to be completed here
}
  

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Close, but usually mIRC updates its internal identifiers only after the event, so $me is still $nick and not yet $newnick...

on *:NICK:{ if ($nick == $me) { action's here } }

But better is (as said already)

on me:*:NICK:{
echo -s I changed nick from $nick == $me to $newnick !
}


Link Copied to Clipboard