mirror of https://github.com/calzoneman/sync.git
Fix #269
This commit is contained in:
parent
36445bed6e
commit
0e87fc6907
|
@ -994,6 +994,7 @@ Channel.prototype.broadcastNewUser = function(user) {
|
||||||
if(self.dbloaded && self.users.length == 1 && !self.registered) {
|
if(self.dbloaded && self.users.length == 1 && !self.registered) {
|
||||||
user.rank = (user.rank < Rank.Owner) ? 10 : user.rank;
|
user.rank = (user.rank < Rank.Owner) ? 10 : user.rank;
|
||||||
user.socket.emit("channelNotRegistered");
|
user.socket.emit("channelNotRegistered");
|
||||||
|
user.socket.emit("rank", 10);
|
||||||
}
|
}
|
||||||
self.server.db.listAliases(user.ip, function (err, aliases) {
|
self.server.db.listAliases(user.ip, function (err, aliases) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
|
Loading…
Reference in New Issue