Fix auth bug

Users with channel rank but no global rank were not properly authenticated.
This commit is contained in:
calzoneman 2013-03-16 14:52:04 -05:00
parent 9ede4dbc2d
commit 24f14530a4

View file

@ -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,