Channel case-sensitivity issues. Main cause of "Cannot call method 'clientEvent'...
authorDarren <darren@darrenwhitlen.com>
Fri, 28 Mar 2014 15:49:56 +0000 (15:49 +0000)
committerDarren <darren@darrenwhitlen.com>
Fri, 28 Mar 2014 15:49:56 +0000 (15:49 +0000)
server/irc/channel.js

index 5aebcb068ad7ee19072afc34881612ef2f8c7918..2226828a0372d1a49b44b3946af723867929330c 100644 (file)
@@ -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 = [];