From 668849dff79273bb4615692db21cbe95b1bc8cf4 Mon Sep 17 00:00:00 2001 From: cyan <> Date: Tue, 31 May 2005 06:22:57 +0000 Subject: [PATCH] Let's not pretend that we're still coding in BASIC, shall we? --- exec/ircd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/ircd.js b/exec/ircd.js index ad788f6c24..471fbf811d 100644 --- a/exec/ircd.js +++ b/exec/ircd.js @@ -915,7 +915,7 @@ function ircout(str) { } function Queue_Add(str) { - this.bytes = this.bytes + str.length; + this.bytes += str.length; this.queue.push(str); } @@ -2748,7 +2748,7 @@ function IRCClient_check_timeout() { function IRCClient_check_sendq() { if (this.sendq.bytes && this.socket.send(this.sendq.queue[0] + "\r\n")) { - this.sendq.bytes = this.sendq.bytes - this.sendq.queue[0].length; + this.sendq.bytes -= this.sendq.queue[0].length; this.sendq.queue.shift(); } } -- GitLab