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

@ -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];
}