| View previous topic :: View next topic |
| Author |
Message |
WisH-GR Voice
Joined: 17 Aug 2009 Posts: 9
|
Posted: Wed Nov 25, 2009 2:43 am Post subject: change mode |
|
|
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 |
|
| Back to top |
|
 |
WisH-GR Voice
Joined: 17 Aug 2009 Posts: 9
|
Posted: Fri Dec 04, 2009 2:15 am Post subject: |
|
|
| anyone ppl? |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Fri Dec 04, 2009 8:06 am Post subject: |
|
|
| Code: | 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 _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
|