From: Darren Date: Fri, 28 Mar 2014 15:49:56 +0000 (+0000) Subject: Channel case-sensitivity issues. Main cause of "Cannot call method 'clientEvent'... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=36290f9f8b2b27330445a1eefc32123c2b8fea0f;p=KiwiIRC.git Channel case-sensitivity issues. Main cause of "Cannot call method 'clientEvent' of undefined" --- diff --git a/server/irc/channel.js b/server/irc/channel.js index 5aebcb0..2226828 100644 --- a/server/irc/channel.js +++ b/server/irc/channel.js @@ -4,7 +4,9 @@ var util = require('util'), var IrcChannel = function(irc_connection, name) { this.irc_connection = irc_connection; - this.name = name; + + // Lowercase the channel name so we don't run into case-sensitive issues + this.name = name.toLowerCase(); this.members = []; this.ban_list_buffer = [];