mirror of https://github.com/calzoneman/sync.git
fix #303
This commit is contained in:
parent
9e56400f53
commit
2730c54344
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue