summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-11-16 19:54:23 +0000
committerSadie Powell <sadie@witchery.services>2023-11-16 19:54:23 +0000
commitc3e95d8e2ec1a7d520db54b339277505243b5fc6 (patch)
treeefd0bb4fc30810ccb8aacdf15f13599ae14daf6b /modules
parentba163027bd9d62d3ae22bc1f8eb8cbe8bc478bf7 (diff)
Fix chanserv/suspend info not being visible to regular users.
Closes #325.
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/cs_suspend.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp
index 839fe74de..6c519fb6a 100644
--- a/modules/commands/cs_suspend.cpp
+++ b/modules/commands/cs_suspend.cpp
@@ -222,6 +222,13 @@ class CSSuspend : public Module
{
}
+ void OnReload(Configuration::Conf *conf) anope_override
+ {
+ Anope::string s = conf->GetModule(this)->Get<Anope::string>("show");
+ commasepstream(s).GetTokens(show);
+ std::transform(show.begin(), show.end(), show.begin(), trim());
+ }
+
void OnChanInfo(CommandSource &source, ChannelInfo *ci, InfoFormatter &info, bool show_hidden) anope_override
{
CSSuspendInfo *si = suspend.Get(ci);