From a1c04b98f3e3e4da0419dfe46a197049052dbe2c Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Fri, 12 Apr 2013 14:43:27 +0200 Subject: [PATCH] support rfc2812-style LIST --- server/irc/server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/irc/server.js b/server/irc/server.js index 412af8d..63902e7 100755 --- a/server/irc/server.js +++ b/server/irc/server.js @@ -64,9 +64,13 @@ function onOptions(event) { function onListStart(event) { this.irc_connection.clientEvent('list_start', {}); this.list_buffer = []; + this.busy_listing = true; }; function onListChannel(event) { + if (!this.busy_listing) { + onListStart.call(this, event); + } var buf; this.list_buffer.push({ channel: event.channel, @@ -97,7 +101,7 @@ function onListEnd(event) { chans: buf }); this.list_buffer = []; - + this.busy_listing = false; this.irc_connection.clientEvent('list_end', {}); }; -- 2.25.1