From: Pepijn de Vos Date: Fri, 12 Apr 2013 12:43:27 +0000 (+0200) Subject: support rfc2812-style LIST X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a1c04b98f3e3e4da0419dfe46a197049052dbe2c;p=KiwiIRC.git support rfc2812-style LIST --- 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', {}); };