Code: Select all
if {[matchattr $hand o|o $chan]==1} {
if {[passwdok $hand]==1} {
if {[validchan $chan]==1} {
if {[onchan $knick]==1} {
if {[botonchan $chan]==1} {
if {$kreason == ""} {set reason "requested by $nick}
putserv "KICK $chan $knick $kreason"
puthelp "NOTICE $nick :You have kicked out by $nick"
return 1
}}}}
Code: Select all
if {[lindex [split $arg] 0]==""} {
if {[lindex [split $arg] 1]==""} {
if {[lindex [split $arg] 0]==""} {
puthelp "NOTICE $nick :Syntax: /msg $botnick KICK <password> <channel> <nickname> <reason>"
return 0
}}}
Code: Select all
if {$knick == ""} {
Code: Select all
if {(![passwdok $hand $pass]) || (![passwdok $hand ""])} {
Code: Select all
if {[strlwr $knick] == [strlwr $botnick]} {
Code: Select all
if {[isbotnick $knick]} {
Code: Select all
if {[botonchan $chan]==0} {
puthelp "NOTICE $nick :Sorry, i'm not op in $chan."
return 0
}
Code: Select all
if {[botisop $chan]==0} {
puthelp "NOTICE $nick :Sorry, i'm not op in $chan."
return 0
}
Code: Select all
if {![botisop $chan]} {
puthelp "NOTICE $nick :Sorry, i'm not op in $chan."
return 0
}