+N (Nick change block) Evade

By NIGathan on Sep 29, 2008

Tired of having to manually rejoin channels with mode +N set each time you want to change your nick?

This script will replace your /nick alias with one that will automatically part and rejoin every +N channel allowing you to change your nick. Just add to your remote.

Note: This script CANNOT detect if you have access in a channel. (If you have access in a +N channel you can change your nick without rejoining) In other words, no matter your access if +N is set in a channel you will be rejoined on nick change.

alias nick {
  if ($isid) return
  var %w = 1
  while (%w <= $chan(0)) {
    if (N isincs $chan(%w).mode) {
      var %wchan = $addtok(%wchan,$chan(%w),44)
      part $chan(%w) Rejoining because of nick change
      inc %w
    }
    inc %w
  }
  if (%wchan) renick $1 %wchan $active
  else !nick $1
}

alias renick {
  .timerw0 1 1 !nick $1
  .timerw1 1 2 join $2
  .timerw2 1 3 join $3
}

Comments

Sign in to comment.
chachin   -  Oct 06, 2011

so how exactly do you use it.. you jusd to /nick new nick. an the script will part you if you dont have access to -N or wtf?

 Respond  
NIGathan   -  Oct 01, 2008

Thanks Cheiron :D

 Respond  
Cheiron   -  Sep 30, 2008

now i know why there was a reason i have a whois on join/nicktracker on join and a checker running hehe..

nice little script :D gets a thumping 7 from me

 Respond  
NIGathan   -  Sep 30, 2008

Hmm, I never really use var, but after reading its help description it seems much more suitable. Thanks

Also the previous edit I noted in the first comment didn't seem to go through for some reason, and I just realized it and fixed it.

 Respond  
Gummo   -  Sep 30, 2008
if (%wchan) set %wchan %wchan $+ , $+ $chan(%w)
else set %wchan $chan(%w)

You can use var instead of set here as it's better for scripts (where applicable), as well as $addtok:

var %wchan $addtok(%wchan,$chan,44)
 Respond  
PuNkTuReD   -  Sep 30, 2008

nice lil snippet

 Respond  
NIGathan   -  Sep 29, 2008

Fixed small bug returning an error if no channels are +N

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.