From c08439e1350b2aba017dd15b416c720b691cd740 Mon Sep 17 00:00:00 2001
From: cyan <>
Date: Mon, 1 Dec 2003 09:18:27 +0000
Subject: [PATCH] Fixed a small bug in IRC_string involving an invalid
 variable, and made the CVS revision the primary revision for irclib.js

---
 exec/load/irclib.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/load/irclib.js b/exec/load/irclib.js
index 33a1713b18..ad43674d5a 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);
 		}
 	}
-- 
GitLab