From 75e250150021b76ba4291e16d2bf304c34676e27 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 15 Apr 2025 15:59:51 +0100 Subject: Allow unbanning virtual modes, add the !unmute fantasy command. --- modules/chanserv/cs_unban.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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 ¶ms) override { - ChannelMode *cm = ModeManager::FindChannelModeByName("BAN"); + const auto &mode = Config->GetCommand(source).Get("mode", "BAN"); + auto *cm = ModeManager::FindChannelModeByName(mode); if (!cm) return; -- cgit