mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-08 17:25:38 -05:00
Make battlefilter not work for challenge battles
This commit is contained in:
@@ -286,7 +286,8 @@ let chatfilter = function (message, user, room) {
|
||||
for (const list in Chat.monitors) {
|
||||
const {location, condition, monitor} = Chat.monitors[list];
|
||||
if (!monitor) continue;
|
||||
if (location === 'BATTLES' && !(room && room.battle)) continue;
|
||||
// Ignore challenge games, which are unrated and not part of roomtours.
|
||||
if (location === 'BATTLES' && !(room && room.battle && (room.battle.rated || room.parent))) continue;
|
||||
if (location === 'PUBLIC' && room && room.isPrivate === true) continue;
|
||||
|
||||
switch (condition) {
|
||||
|
||||
Reference in New Issue
Block a user