I've been trying to look for information about this, but at least so far I haven't found anything.
Is it possible to setup the bot so that it will give person OP's when he/she sends a private message to the bot containing the password? And that also would be the only requisite to get the OP's.
Also would it be possible to make it so that different channels have different passwords? This approach just seems to suite my situation best.
Sure, create user accounts with proper hostmasks (so the bot will recognize them), and give them the +o flag. Next tell them to set a password (or set one for them yourself). Finally, tell them to "/msg botnick OP password" whenever they need op...
Since the password is user specific, you cannot have separate passwords for different channels. However, if you wish for one user to only be able to gain ops on certain channels, use channel-specific flags (such as .chattr handle |+o #thechannel)
Or were you referring to have a universal password for the channel, where anyone knowing the password would get op, regardless of wether your got recognizes them or not?
Or were you referring to have a universal password for the channel, where anyone knowing the password would get op, regardless of wether your got recognizes them or not?
Yep, this is what I meant. Sorry, didn't make myself clear.
We just have few channels and few people and most of us know each other, but still there are some variation who should get ops on what channel. And quite often someone seems to change computer, program, ISP or something and the hostmask changes. Or people are using some temporary connection somewhere.
I just would like to get a really simple way to distribute the ops without too much hassle playing with the hostmasks.
Code is untested, but should work out of the box. Just update the array of passwords and channels. If you have any problems or questions, don't hesitate to post here. If applicable, also include any error messages or such.