Here's the code:
Any ideas how do I add the 'if' variable? Thanksbind pub o "[char]Op" pub:op
proc pub:op {user uhost hand chan arg} {
if {[lindex $arg 0] == "-help"} {
puthelp "NOTICE $user :02[char]OP02"
puthelp "NOTICE $user :Flags...: O"
puthelp "NOTICE $user :Syntax..: [cha]OP <nick>"
puthelp "NOTICE $user :0303"
puthelp "NOTICE $user :Info....: Give nick OP in #channel"
puthelp "NOTICE $user :This allows user to kick/ban/setmodes user in channel"
return 0
}
set opuser [lindex $arg 0]
if {[onchan $opuser $chan] == 0} {
puthelp "NOTICE $user :** Syntax: [char]OP <nick>"
puthelp "NOTICE $user :** $user isn't on channel"
return 0
}
putserv "PRIVMSG Q :set $chan strictops off"
puthelp "PRIVMSG $chan :eek:P for $opuser requested by $user"
putserv "MODE $chan +o :$opuser"
putserv "PRIVMSG Q :set $chan strictops on"
putlog "<$user> requested Op for $opuser in $chan"
}
<font size=-1>[ This Message was edited by: galaxyboy on 2001-12-01 02:09 ]</font>