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
}