Fixing spacing.

This commit is contained in:
Adam Davis 2018-04-02 15:46:34 -04:00
parent 6e31e0aad3
commit fc7ebced2f

View File

@ -10,8 +10,8 @@ AnonymousCheck.prototype = Object.create(ChannelModule.prototype);
AnonymousCheck.prototype.onUserPreJoin = function (user, data, cb) {
var chan = this.channel,
opts = this.channel.modules.options;
var anonymousBanned = opts.get("block_anonymous_users");
if(anonymousBanned && user.isAnonymous()) {
var anonymousBanned = opts.get("block_anonymous_users");
if(anonymousBanned && user.isAnonymous()) {
user.socket.on("disconnect", function () {
if (!user.is(Flags.U_IN_CHANNEL)) {
cb("User disconnected", ChannelModule.DENY);