[Rules] Add rule to ignore name filter on chat channel creation. (#2820)

* [Rules] Add rule to ignore name filter on chat channel creation.

* Conditional reorder
This commit is contained in:
Vayle authored and GitHub committed 2023-02-06 17:22:12 -06:00
1 parent 6a9228ed6e
commit b385a4385f
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ ChatChannel *ChatChannelList::CreateChannel(
{
uint8 max_perm_player_channels = RuleI(Chat, MaxPermanentPlayerChannels);
if (!database.CheckChannelNameFilter(name)) {
if (!RuleB(Chat, ChannelsIgnoreNameFilter) && !database.CheckChannelNameFilter(name)) {
if (!(owner == SYSTEM_OWNER)) {
return nullptr;
}