aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-05-07 22:41:54 +0100
committerGravatar Sadie Powell2020-05-07 22:41:54 +0100
commitc7cbfa7f98059adff94bd8dfbecfc05a310d9193 (patch)
tree5d84450d3637feb9ac59498307b58ce6a7c1491f
parentAdd first class support for extbans. (diff)
Fix not being able to set more than one extban.
-rw-r--r--src/coremods/core_channel/extban.cpp2
-rw-r--r--src/modules/m_banexception.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_channel/extban.cpp b/src/coremods/core_channel/extban.cpp
index 538bb6361..d9a366d37 100644
--- a/src/coremods/core_channel/extban.cpp
+++ b/src/coremods/core_channel/extban.cpp
@@ -51,7 +51,7 @@ ModResult ExtBanManager::GetStatus(ExtBan::Acting* extban, User* user, Channel*
// The mask must be in the format <letter>:<value> or <name>:<value>.
size_t endpos = ban.mask.find_first_not_of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
if (endpos == std::string::npos || ban.mask[endpos] != ':')
- return MOD_RES_PASSTHRU;
+ continue;
const std::string xbname(ban.mask, 0, endpos);
if (xbname.size() == 1)
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index 5a953b148..e267c3524 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -78,7 +78,7 @@ class ModuleBanException
// The mask must be in the format <letter>:<value> or <name>:<value>.
size_t endpos = ban.mask.find_first_not_of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
if (endpos == std::string::npos || ban.mask[endpos] != ':')
- return MOD_RES_PASSTHRU;
+ continue;
const std::string name(ban.mask, 0, endpos);
if (name.size() == 1)