X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/blobdiff_plain/0d3ea3aa52f4a62b4f8a64892bfbe579164eb26d..37a9f1adbed3ab89c14bf4c8c4dbac5cd0ca29ed:/usebnbot.tcl?ds=sidebyside 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