summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/chanserv/cs_unban.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/chanserv/cs_unban.cpp b/modules/chanserv/cs_unban.cpp
index d0dae5e73..0a1955115 100644
--- a/modules/chanserv/cs_unban.cpp
+++ b/modules/chanserv/cs_unban.cpp
@@ -23,7 +23,8 @@ public:
void Execute(CommandSource &source, const std::vector<Anope::string> &params) override
{
- ChannelMode *cm = ModeManager::FindChannelModeByName("BAN");
+ const auto &mode = Config->GetCommand(source).Get<Anope::string>("mode", "BAN");
+ auto *cm = ModeManager::FindChannelModeByName(mode);
if (!cm)
return;