1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 07:23:14 +02:00

Fix chanserv/suspend info not being visible to regular users.

Closes #325.
This commit is contained in:
Sadie Powell
2023-11-16 19:54:23 +00:00
parent ba163027bd
commit c3e95d8e2e
+7
View File
@@ -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);