Once this script is loaded in your remote type /useNicks to make it work.
This script changes your nick to all your group nicks that haven't been used for over a month.
alias chanModeCheck {
var %i = $chan(0)
while (%i) {
if (N isincs $chan(%i).mode && $me !isop $chan(%i)) { var %nModeChans = $addtok(%nModeChans, $chan(%i), 32) }
dec %i
}
return %nModeChans
}
alias useNicks {
if (!$chanModeCheck) {
/ns glist
}
else {
/echo -a 12The following channel(s): 4 $+ $chanModeCheck 12use +N lock if you're an operator on these channel(s) type !up on each channel, else leave the specified channel(s) where you're not an operator on!
}
}
alias changeNick {
var %totalNicks = $numtok(%nicksToUse, 58)
if (%totalNicks) {
nick $gettok(%nicksToUse, 1, 58)
set %nicksToUse $deltok(%nicksToUse, 1, 58)
}
else {
.timerUseNick off
echo -a 12Finished using all unused nicks !
nick %orgNick
unset %nicksToUse %orgNick
}
}
on *:NOTICE:*:*:{
if ($nick == NickServ) {
if ($strip($1-2) == group list) {
set %totalNicksInList $gettok($remove($strip($5), $chr(40), $chr(41), $chr(58)), 1, 32)
set %count 0
}
tokenize 32 $strip($1-)
if ($4-5 == Last Used) {
if (month isin $2-) { set %nicksToUse $addtok(%nicksToUse, $1, 58) }
inc %count
if (%count == %totalNicksInList) {
unset %count %totalNicksInList
if (%nicksTouse) {
set %orgNick $me
.timerUseNick 0 35 changeNick
}
else { echo -a 12No unused nick found ! }
}
}
}
}