I dunno if I already asked about this topic, I couldn't find it.
This is a notice locker based on nick:
Код:
menu nicklist {
•NOTICELOCKER•
.LOCK $1 : if (!$readfile($1)) { write -i $pathfile $1 | echo 4 LOCK: $1 }
.UNLOCK $1 : if ($readfile($1)) { write $+(-dl,$v1) $pathfile | ignore -r $1 | echo 3 UNLOCK: $1 }
.-
.LIST: ignore -ln
}
on *:NOTICE:*:?: if ($readfile($nick)) { .notice $nick NOTICE NON INVIATO !!! (errore X09732Z865) }
alias -l pathfile { return addons/noticeblocked.txt }
alias -l readfile { if ($read($pathfile,ntw,$1)) { return $readn } }
Is it possible to add the option in menu nicklist to can choose if to lock NICK or USER or HOST?
Thanks