diff options
| -rw-r--r-- | data/botserv.example.conf | 1 | ||||
| -rw-r--r-- | modules/chanserv/cs_unban.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/data/botserv.example.conf b/data/botserv.example.conf index 034b6de40..07e852d45 100644 --- a/data/botserv.example.conf +++ b/data/botserv.example.conf @@ -410,6 +410,7 @@ fantasy { name = "SUSPEND"; command = "chanserv/suspend"; permission = "chanserv fantasy { name = "SYNC"; command = "chanserv/sync"; } fantasy { name = "TOPIC"; command = "chanserv/topic"; } fantasy { name = "UNBAN"; command = "chanserv/unban"; } +fantasy { name = "UNMUTE"; command = "chanserv/unban"; mode = "QUIET"; } fantasy { name = "UNSUSPEND"; command = "chanserv/unsuspend"; permission = "chanserv/suspend"; } fantasy { name = "UP"; command = "chanserv/up"; } fantasy { name = "VOICE"; command = "chanserv/modes"; } 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> ¶ms) 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; |
