mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
Fixing spacing.
This commit is contained in:
parent
6e31e0aad3
commit
fc7ebced2f
@ -10,8 +10,8 @@ AnonymousCheck.prototype = Object.create(ChannelModule.prototype);
|
|||||||
AnonymousCheck.prototype.onUserPreJoin = function (user, data, cb) {
|
AnonymousCheck.prototype.onUserPreJoin = function (user, data, cb) {
|
||||||
var chan = this.channel,
|
var chan = this.channel,
|
||||||
opts = this.channel.modules.options;
|
opts = this.channel.modules.options;
|
||||||
var anonymousBanned = opts.get("block_anonymous_users");
|
var anonymousBanned = opts.get("block_anonymous_users");
|
||||||
if(anonymousBanned && user.isAnonymous()) {
|
if(anonymousBanned && user.isAnonymous()) {
|
||||||
user.socket.on("disconnect", function () {
|
user.socket.on("disconnect", function () {
|
||||||
if (!user.is(Flags.U_IN_CHANNEL)) {
|
if (!user.is(Flags.U_IN_CHANNEL)) {
|
||||||
cb("User disconnected", ChannelModule.DENY);
|
cb("User disconnected", ChannelModule.DENY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user