I want to make a script that has this:
Owners (or higher) can use " !op nick " to op this person. Nick is optional, otherwise it will op the person himself.
But I also want the script to let ops in the channel use the command. So everybody who has op, can use " !op nick " too, and that's were the problem is:
Code: Select all
bind pub o|o !op pub_op_own
bind pub - !op pub_op
proc pub_op {nick mask hand chan text} {
if {[isop $nick $chan]} {
set opname "[lindex $text 0]"
if {$opname != ""} {
pushmode $chan +o $opname
}
}
}
proc pub_op_own {nick mask hand chan text} {
set opname "[lindex $text 0]"
if {$opname == ""} {
pushmode $chan +o $nick }
if {$opname != ""} {
pushmode $chan +o $opname
}
}
Any solution to this? Thank you