Code: Select all
bind pub nm .addop h:addop:msg
proc h:addop:msg {nick host hand chan text} {
set user [lindex $text 0]
set address *![getchanhost [lindex $text 0]]
if {[string match -nocase $text ""]} {
putquick "NOTICE $nick :You didn't include a nickname."
return 0
}
if {![onchan $text $chan]} {
putquick "NOTICE $nick :$user isn't on $chan."
return 0
}
putquick "NOTICE $nick :Added op: $user"
adduser $user $address
chattr $user +ao $chan
pushmode $chan +o $user
}
.access = Will display my access
.access * = Will display *'s access
If anyone could please help me with this, it would be greatly appreciated.
Thanks.