X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/blobdiff_plain/a44d49829c0774614c44a03ec4e0d0f8cb83e9f0..cd8c3236df9b5e2804e34f6a36fe714c4e626b1c:/usebnbot.tcl diff --git a/usebnbot.tcl b/usebnbot.tcl index 8e227c6..b164f12 100644 --- a/usebnbot.tcl +++ b/usebnbot.tcl @@ -42,7 +42,7 @@ def_bnbot writemsg {str} { def_bnbot onread {args} { global channel - if {[gets $bnchan l] == -1} { fail "bot $bot EOF/error on input" } + if {[gets $bnchan l] == -1} { fail "bot $botid EOF/error on input" } if {[regexp {^1005 TALK ([^ ]+) \w+ \"(.*)\"$} $l dummy n text]} { sendprivmsg $channel "\[$n] $text" return