bind pub - !op op:proc
proc op:proc {nick uhost hand chan arg} {
if {[isop $nick $chan]} {
#my code goes here, it works problem is not here.
}
}
The problem is that if the user have a "op" (+o) , works great. But if the user have a "protect" (+a) or "owner" (+q) code doesn't work.
Please help me, how can I make this code working for "protected users and channel owners." ?
MrDeNNiS wrote:The problem is that if the user have a "op" (+o) , works great. But if the user have a "protect" (+a) or "owner" (+q) code doesn't work.
Please help me, how can I make this code working for "protected users and channel owners." ?
Thommey wrote something for this already...
Arbitrary chanmodes (+q, +a)
This script provides accessor functions isowner and isadmin to get ownership/adminship (or w/e those are) to tcl scripts.
You need to restart the bot when you first load it.