mIRC Home    About    Download    Register    News    Help

Print Thread
#98288 22/09/04 05:34 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Code:
on *:input:*: { 
  if ($1 == /nick) { 
    set -u5 %tmpNick $2 
  } 
}
on *:nick: { 
  if ($nick == $me) && (%tmpNick == $null) { 
    nick $me 
  } 
}

This floods anyclue why?

Last edited by Armada; 22/09/04 05:35 AM.
#98289 22/09/04 05:46 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Tiss looping round n round... whats wrong with;

alias nick {
if (!%^nc) { !nick $1- | set -u5 %^nc 1 }
}

Since, ON NICK is pointless as it would trigger when you changed nick (to late to stop it, pointless changing back)

Eamonn.

#98290 22/09/04 05:47 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Well its to prevent stupid friends from chaning my nick via svsnick. /me tries
Edit
SO the on nick is needed to see when my nick changes
Edit2:
Code:
 on *:input:*:{
  if ($1 == /nick) {
    //set -u5 %tmpNick yes
  }
}

on *:nick:{
  if ($nick == $me) {
    if (%ignoreNick == yes) {
      //halt
    }
    elseif (%tmpNick == yes) {
      //halt
    }
    else {
      //set -u5 %ignoreNick yes
      //nick $me
    }
  }
} 

^^ Works

Last edited by Armada; 22/09/04 05:52 AM.
#98291 22/09/04 05:53 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Oh, I thought it was an attempt to stop yourself changing nicks repeatedly, writing a script to counter SVSNICK is pointless, since they can jus keep doing it and you'll flood off.

Find another network that has people with common sense..

However, if you really want it.

alias nick { set -u5 %^nc $1 | !nick $1 }

On *:Nick:{
if (($nick == $me) && (!%^nc)) { nick $nick }
}


To test it if you dont have access to SVSNICK;
/nick testingnick1 - should be fine.
Wait 5 seconds, /!nick testingnick2 - should result in you changing to it and back to testingnick1.

Eamonn.


Link Copied to Clipboard