summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_topic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv/cs_topic.cpp')
-rw-r--r--modules/chanserv/cs_topic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/chanserv/cs_topic.cpp b/modules/chanserv/cs_topic.cpp
index f774dca65..f21ea11f8 100644
--- a/modules/chanserv/cs_topic.cpp
+++ b/modules/chanserv/cs_topic.cpp
@@ -262,7 +262,7 @@ public:
ModeLocks *ml = ci->GetExt<ModeLocks>("modelocks");
const ModeLock *secret = ml ? ml->GetMLock("SECRET") : NULL;
- if (!ci->last_topic.empty() && (show_all || ((!secret || secret->set == false) && (!ci->c || !ci->c->HasMode("SECRET")))))
+ if (!ci->last_topic.empty() && (show_all || ((!secret || !secret->set) && (!ci->c || !ci->c->HasMode("SECRET")))))
{
info[_("Last topic")] = ci->last_topic;
info[_("Topic set by")] = ci->last_topic_setter;