Instead of
if {(a) || (b) == 0}
try
if {!(a) && !(b)}
Code: Select all
proc putchan {chan text} {
putserv "PRIVMSG $chan :$text"
return 0
}
Code: Select all
bind pub - foo gotfoo
proc gotfoo {nick uhost hand chan text} {
foreach person [chanlist $chan] {
putserv "privmsg $person :bar"
}
return 0
}
Code: Select all
proc mycallback {nick ident} {
if {$ident == 1} {
# has identified
} else {
# hasn't identified
}
}
hi_check stdragon mycallback