From 633e7e1c5462c8e1dbff10bc4eada2d694177e7d Mon Sep 17 00:00:00 2001 From: ECHibiki Date: Tue, 16 Jul 2019 04:37:38 +0000 Subject: [PATCH] Leader bug fix --- src/channel/anonymouspost.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/channel/anonymouspost.js b/src/channel/anonymouspost.js index 076db4df..eead18c1 100755 --- a/src/channel/anonymouspost.js +++ b/src/channel/anonymouspost.js @@ -104,9 +104,8 @@ AnonymousPost.prototype = Object.create(ChannelModule.prototype); AnonymousPost.prototype.onUserPreJoin = function (user, data, cb) { const opts = this.channel.modules.options; var anonymousPosting = opts.get("allow_anon_chat"); - if(anonymousPosting && user.isAnonymous){ + if(anonymousPosting && user.isAnonymous()){ user.guestLogin("Anonymous-" + makeIPHash(user.realip) +""); - //user.guestLogin("Anonymous"); cb(null, ChannelModule.PASSTHROUGH); } else{ -- 2.11.4.GIT