bind pub - !stats stats
proc stats {nick uhost hand chan arg} {
if {![isop $nick $chan]} { return }
putquick "PRIVMSG #ace :yes this line works cause ur an op"
} else {
if {![isvoice $nick $chan]} { return }
putquick "PRIVMSG #ace :yes this line works cause ur NOT an op"
}
}
bind pub - !stats stats
proc stats {nick uhost hand chan arg} {
if {![isop $nick $chan]} {
putquick "PRIVMSG #ace :yes this line works cause ur an op"
} else {
if {![isvoice $nick $chan]} {
putquick "PRIVMSG #ace :yes this line works cause ur NOT an op"
}
}
Note: your code is set to test if people are NOT ops or voices, that's what the "!" does
so the first part tests like this: "$nick is NOT op in $chan"