This commit is contained in:
calzoneman 2013-11-06 17:43:12 -06:00
parent 9e56400f53
commit 2730c54344
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Nov 06 17:42 2013 CDT
* lib/server.js: Fix getChannel to properly handle case insensitive
channel names
Tue Nov 05 22:43 2013 CDT
* lib/channel.js: Set user.channel = null in userLeave to prevent
double execution of userLeave.

View File

@ -213,7 +213,7 @@ Server.prototype.isChannelLoaded = function (name) {
Server.prototype.getChannel = function (name) {
var cname = name.toLowerCase();
for (var i = 0; i < this.channels.length; i++) {
if (this.channels[i].canonical_name == name)
if (this.channels[i].canonical_name === cname)
return this.channels[i];
}