First, make a little script with the following lines and place it in the scripts folder (I called it bncop.tcl):
Code: Select all
bind need - "% op" Need_Ops
proc Need_Ops {chan type} {
putserv "PRIVMSG YourNick :op password $chan"
}
Add this script to either the scripts section of the bots config file or to the end of netset.tcl if running netbots (via set nb_component(bncop) 1).
Next, add the bot to the ASKOP list in psyBNC with this command:
/ADDOP #MyChannel password:*!MyBot@my.host.com
changing #MyChannel, password and MyBot@my.host.com as required (passwords must match, of course!)
Note that you can leave out #MyChannel and it will work on all channels the bot joins where your bouncer resides.
You can get a list of bots/users that can ask for ops from the bouncer with:
/LISTOPS
I've received several mails about how to do the above, so hope post helps. It should work for any bouncer that allows users to ask for ops but the syntax of the ADDASK command may well differ, of course.
Happy New Year everyone
