This commit is contained in:
Calvin Montgomery 2013-08-23 18:41:48 -05:00
parent 36445bed6e
commit 0e87fc6907

View file

@ -994,6 +994,7 @@ Channel.prototype.broadcastNewUser = function(user) {
if(self.dbloaded && self.users.length == 1 && !self.registered) {
user.rank = (user.rank < Rank.Owner) ? 10 : user.rank;
user.socket.emit("channelNotRegistered");
user.socket.emit("rank", 10);
}
self.server.db.listAliases(user.ip, function (err, aliases) {
if(err) {