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,