mIRC Home    About    Download    Register    News    Help

Print Thread
#210823 26/03/09 08:30 PM
Joined: Mar 2009
Posts: 4
P
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Mar 2009
Posts: 4
hi, often I find my preferred nick is taken by users, is there a way my irc can 'monitor' when the nick goes offline, and automatically change it for me?

i've tried this script in remotes

on *:unotify: { if (($nick == NickH) && ($scon(1).cid == $cid)) { nick $nick } }

although I can't seem to get it to work. I'd like the name 'pear' if possible.. i've tried fooling around with some of the variables but still cannot acheive my goals frown

help please!

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on *:UNOTIFY:if ($nick == pear) nick $v2

This should check if the nick pear in your notify list goes offline before you can change to pear yourself.

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Inside the event, $cid will be the connection ID for that server connection, but if you want to "get" that nick on a specific network, you should check $network for the desired network name ("TheNetwork" in the code):
Code:
on *:unotify: {
  if (($nick == pear) && ($network == TheNetwork)) { nick $nick }
}
And make sure you've added "pear" to your notify list for this network: /notify -n pear TheNetwork

Last edited by Horstl; 26/03/09 09:08 PM.
Horstl #210829 26/03/09 09:46 PM
Joined: Mar 2009
Posts: 4
P
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Mar 2009
Posts: 4
thanks you two, works a treat smile


Link Copied to Clipboard