diff options
author | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
commit | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (patch) | |
tree | 618a4f0e173166e6f966a7cce78f06c3c1c3299f /modules/chanserv/topic.cpp | |
parent | 16ca76c2e7ab287e480185fbb03a0bb438351eda (diff) |
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/chanserv/topic.cpp')
-rw-r--r-- | modules/chanserv/topic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/chanserv/topic.cpp b/modules/chanserv/topic.cpp index 648c322fb..3b4251b58 100644 --- a/modules/chanserv/topic.cpp +++ b/modules/chanserv/topic.cpp @@ -54,7 +54,7 @@ class CommandCSSetKeepTopic : public Command if (MOD_RESULT == EVENT_STOP) return; - if (MOD_RESULT != EVENT_ALLOW && !source.AccessFor(ci).HasPriv("SET") && source.permission.empty() && !source.HasPriv("chanserv/administration")) + if (MOD_RESULT != EVENT_ALLOW && !source.AccessFor(ci).HasPriv("SET") && source.GetPermission().empty() && !source.HasPriv("chanserv/administration")) { source.Reply(_("Access denied. You do not have privilege \002{0}\002 on \002{1}\002."), "SET", ci->GetName()); return; |