X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/ircbot/blobdiff_plain/f7a1225f820945713f37001f55ac81724b0a63f2..9e738c1dc975490d376b75e863ee79735ca5d921:/irccore.tcl diff --git a/irccore.tcl b/irccore.tcl index 7a6f157..3ff0bd1 100644 --- a/irccore.tcl +++ b/irccore.tcl @@ -7,6 +7,7 @@ proc defset {varname val} { defset port 6667 defset nick testbot +defset ident blight defset ownfullname "testing bot" defset ownmailaddr test-irc-bot@example.com @@ -284,7 +285,7 @@ proc fail {msg} { } proc ensure_connecting {} { - global sock ownfullname host port nick socketargs + global sock ownfullname host port nick ident socketargs global musthaveping_ms musthaveping_after ensure_outqueue @@ -294,7 +295,7 @@ proc ensure_connecting {} { fconfigure $sock -buffering line fconfigure $sock -translation crlf - sendout USER blight 0 * $ownfullname + sendout USER $ident 0 * $ownfullname sendout NICK $nick fileevent $sock readable onread