| View previous topic :: View next topic |
| Author |
Message |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Sat Jan 16, 2010 7:08 pm Post subject: on join |
|
|
looking for an on join script that will do the following when i add a channel on the partyline
Check to see if a channel is registered with chanserv or check to see if Chattersworld is in the room and if its not it will send a set of comands to the server ive done a little script that im using but dont work on join
| Code: | bind pub m|m !reg18 reg18_proc
proc reg18_proc { nick uhost hand chan arg } {
putserv "OPERSERV :MODE $chan +o ChanGuardian"
putserv "CHANSERV :REGISTER $chan password $chan"
putserv "BOTSERV :ASSIGN $chan ChattersWorld"
putserv "BOTSERV :KICK $chan FLOOD ON"
putserv "BOTSERV :KICK $chan REPEAT ON"
putserv "OPERSERV :MODE $chan +q $nick"
putserv "CHANSERV :SET $chan FOUNDER $nick"
putserv "CHANSERV :ACCESS $chan ADD ChanGuardian 10"
putserv "OPERSERV :MODE $chan -qo ChanGuardian"
putserv "OPERSERV :MODE $chan +a ChanGuardian"
putserv "TOPIC $chan :Welcome To $chan On ChattersWorld (+18)"
putserv "MODE $chan +NC"
}
|
also need an on join that will check if the bot has been set as mode +qo on channels it joins and if it has it should do operserv mode $chan -qo+ao
many thanks _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
|
| Back to top |
|
 |
Trixar_za Op

Joined: 18 Nov 2009 Posts: 143 Location: South Africa
|
Posted: Fri Jan 22, 2010 6:49 pm Post subject: |
|
|
I'm not sure if this is what you want, but there is a module for Anope services that automatically adds a bot to newly registered channels - I use it myself.
It's called bs_autoassign and you can get it here |
|
| Back to top |
|
 |
|