From: ijackson Date: Sun, 15 Jul 2001 12:12:24 +0000 (+0000) Subject: When failing, print right msg. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=6577a619351929bba5228865c02c7247e22a95fb;p=ircbot.git When failing, print right msg. --- 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