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 mode

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
W
WisH-GR
Voice
Posts: 9
Joined: Mon Aug 17, 2009 4:43 am

change mode

Post by WisH-GR »

hello i would like to request help with a script
i want a script that if a user has a specific flag on a specific channel the bots sits in (for example +Z on #Botlot) if the user types !cmode #channel +-modes the bots changes the mode on that channel.
Thank You
PS:
my bot sits on that channel #botlot and accepts all commands in that channel so i want the bot to be able to change mode on other chans as well.on any chan it is asked to
W
WisH-GR
Voice
Posts: 9
Joined: Mon Aug 17, 2009 4:43 am

Post by WisH-GR »

anyone ppl?
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

Code: Select all

bind pub Z|Z !cmode cmode_proc

proc cmode_proc { nick uhost hand chan arg } {
  set chan [lrange [split $arg] 0 end]  
  putserv "mode $chan "  
}
this will do what you want aslong as your bot as ops on the channel
COMMAND !cmode #channel +or- modes
Post Reply