From 24f14530a4eceac1e6002628b5f06703c42117ef Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 16 Mar 2013 14:52:04 -0500 Subject: [PATCH] Fix auth bug Users with channel rank but no global rank were not properly authenticated. --- channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel.js b/channel.js index 8e94281a..88f031ae 100644 --- a/channel.js +++ b/channel.js @@ -104,7 +104,7 @@ Channel.prototype.createTables = function() { // Retrieves a user's rank from the database Channel.prototype.getRank = function(name) { - if(!this.isRegistered) + if(!this.registered) return Rank.Guest; var db = mysql.createConnectionSync(); db.connectSync(Config.MYSQL_SERVER, Config.MYSQL_USER,