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.

i need an opping tcl

Old posts that have not been replied to for several years.
Locked
C
CafeiN

Post by CafeiN »

Hi I need a tcl which will op a user when he msgs the bot with a password. Also it will check if he has o flag.
e.g.
when I message to the bot the password it will op me then.
/msg bot oppass

password can be general for all users. I mean there can be one password for opiing process. But bot must check if the user has at least +o flag within the bot for security.

Also the same for voicing a user.
/msg bot voicepass
Bot should check if the user has +f flag within the bot.

<font size=-1>[ This Message was edited by: CafeiN on 2002-04-12 11:55 ]</font>
C
CafeiN

Post by CafeiN »

Ok I have written it. I think I am going to learn writing tcl scripts :smile:.

Code: Select all

bind msg o|o oppass msg_op
bind msg f|f voicepass msg_voice

proc msg_op {nick uhost hand chan} {
    pushmode #channel +o $nick
}

proc msg_voice {nick uhost hand chan} {
    pushmode #channel +v $nick
}
Locked