diff --git a/src/channel/chat.js b/src/channel/chat.js index b0424faf..4637cd19 100644 --- a/src/channel/chat.js +++ b/src/channel/chat.js @@ -121,17 +121,7 @@ ChatModule.prototype.shadowMutedUsers = function () { }); }; -const SERVER_START_DATE = Date.now(); ChatModule.prototype.restrictNewAccount = function restrictNewAccount(user, data) { - // TODO: this is temporary to prevent hundreds of guests from getting - // blocked immediately after this feature is rolled out. - // - // Will be removed later. - if (SERVER_START_DATE + this.channel.modules.options.get("new_user_chat_delay")*1000 - >= Date.now()) { - return false; - } - if (user.account.effectiveRank < 2 && this.channel.modules.options) { const firstSeen = user.getFirstSeenTime(); const opts = this.channel.modules.options; diff --git a/src/channel/opts.js b/src/channel/opts.js index acabee46..175fd28b 100644 --- a/src/channel/opts.js +++ b/src/channel/opts.js @@ -26,8 +26,8 @@ function OptionsModule(channel) { torbanned: false, // Block connections from Tor exit nodes allow_ascii_control: false,// Allow ASCII control characters (\x00-\x1f) playlist_max_per_user: 0, // Maximum number of playlist items per user - new_user_chat_delay: 10 * 60, // Minimum account/IP age to chat - new_user_chat_link_delay: 60 * 60 // Minimum account/IP age to post links + new_user_chat_delay: 0, // Minimum account/IP age to chat + new_user_chat_link_delay: 0 // Minimum account/IP age to post links }; }