From 36290f9f8b2b27330445a1eefc32123c2b8fea0f Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 28 Mar 2014 15:49:56 +0000 Subject: [PATCH] Channel case-sensitivity issues. Main cause of "Cannot call method 'clientEvent' of undefined" --- server/irc/channel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = []; -- 2.25.1