== => string compare (!)
[ircbot] / usebnbot.tcl
index b164f12..b110b28 100644 (file)
@@ -47,7 +47,7 @@ def_bnbot onread {args} {
        sendprivmsg $channel "\[$n] $text"
        return
     } elseif {[regexp {^1023 EMOTE ([^ ]+) \w+ \"(.*)\"$} $l dummy n text]} {
-       if {"$n" == "$bnnick"} return
+       if {![ircnick_compare $n $bnnick]} return
        sendprivmsg $channel "* $n $text"
        return
     }