diff --git a/exec/load/irclib.js b/exec/load/irclib.js index 33a1713b188525b4165542b82843aa9076399f1d..ad43674d5a5e06a616d93ba914ce5fb3dafb7556 100644 --- a/exec/load/irclib.js +++ b/exec/load/irclib.js @@ -23,7 +23,7 @@ // const IRCLIB_REVISION = "$Revision$".split(' ')[1]; -const IRCLIB_VERSION = "irclib.js-0.1(" + IRCLIB_REVISION + ")"; +const IRCLIB_VERSION = "irclib.js-" + IRCLIB_REVISION; // Connect to a server as a client. // hostname Hostname to connect to @@ -89,7 +89,7 @@ function IRC_string(str,arg) { var cindex; if (arg) { - for(sw_counter=0;sw_counter<startword;sw_counter++) { + for(sw_counter=0;sw_counter<arg;sw_counter++) { str=str.slice(str.indexOf(" ")+1); } }