I have done a bit of code that allows my bot to use svsnick on my server but i would like to add to it our rooms are set to +N so people cant keep changing there nicks and using nicknames that are offencive
here the code i have done myself and yes before any one says anything its terrible
Code: Select all
bind msg A|A chgnick cmd:chgnick
proc cmd:chgnick {nick uhost hand arg} {
set username [lindex [split $arg] 0]
set newnick [join [lrange [split $arg] 1 end]]
putserv "OPERSERV set superadmin on"
putserv "OPERSERV svsnick $username $newnick"
putserv "OPERSERV set superadmin off"
putserv "NOTICE #Staff <$username> changed to <$newnick> actioned by <$nick>"
}
someone with any of these user flags h o types /botnick changenick oldnickname newnick it will msg #staff with nick is requesting a nickchange on oldnick new nick to action this change type /botnick action changenick it will then go through the above process to change the nickname and notice #staff of the change and who actioned it NOTICE #Staff nickchange on oldnick actioned by $nick
also should have the option to decline the nickchange with /botnick decline changenick then reports back to #staff request to changenick for oldnick declined
thanks in advance