X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/ircbot/blobdiff_plain/e5e18a7f59c21986c73978bb3404f5d1bc41d04d..0d3ea3aa52f4a62b4f8a64892bfbe579164eb26d:/usebnbot.tcl?ds=inline diff --git a/usebnbot.tcl b/usebnbot.tcl index ee7737a..8e227c6 100644 --- a/usebnbot.tcl +++ b/usebnbot.tcl @@ -18,13 +18,13 @@ proc bnbot__vars {} { } def_bnbot ensure_connecting {} { - global musthaveping_ms bnbot + global muststartby_ms bnbot if {[info exists bnchan]} return defset bnport 6112 set bnchan [open [list | $bnbot $bnhost $bnport] w+] fconfigure $bnchan -buffering line - set bnmbokafter [after $musthaveping_ms \ + set bnmbokafter [after $muststartby_ms \ "fail {bot $botid not ok within timeout}"] set bnstate Connected fileevent $bnchan readable [list bnbot_onread $botid]