This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

change nicknames

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

change nicknames

Post by blake »

Hey

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>"
} 
is what i would like to add to this is the following
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
Post Reply