mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 7
L
lost Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Feb 2003
Posts: 7
Is there a way that I can make mIRC automatically set a few different user modes on myself when I change I nick? The NICK event is triggered every time _anybody_ in a room changes a nick and I only want it to trigger when I change my nick.

Thank you in advance

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on *:NICK:{
  if ( $nick == $me ) {
    [color:green]mode $newnick +abc[/color]
  }
}

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
then add an if ($nick == $me)

ON *:NICK:{
if ($nick == $me) {
.echo -s I just changed my nick!
}
else {
.echo -s Someone else just changed his/her nick!
}
}

Joined: Feb 2003
Posts: 7
L
lost Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Feb 2003
Posts: 7
Fast response... thanks smile


Link Copied to Clipboard