summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-11-24 13:04:00 +0000
committerSadie Powell <sadie@witchery.services>2023-11-24 13:04:00 +0000
commit949176c3e0ef746077df83d66efbc972ddc1fc80 (patch)
tree891217c386c58141381619aefcbf9b154b264f47
parent3371941be5eb2d783a512d326f28165d101da6ee (diff)
parentc3e95d8e2ec1a7d520db54b339277505243b5fc6 (diff)
Merge branch '2.0' into 2.1.
-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 ca8dfce56..cae0bbdb9 100644
--- a/modules/commands/cs_suspend.cpp
+++ b/modules/commands/cs_suspend.cpp
@@ -221,6 +221,13 @@ class CSSuspend : public Module
{
}
+ void OnReload(Configuration::Conf *conf) 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) override
{
CSSuspendInfo *si = suspend.Get(ci);