diff options
author | Adam <Adam@anope.org> | 2013-08-14 19:50:08 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-14 19:50:08 -0400 |
commit | 65911dd1be20dc29f4e98561a85cdb1d66197699 (patch) | |
tree | a12b765ef519eb796923b386638c3b0e480479d3 /modules/commands/cs_topic.cpp | |
parent | 4abfdcbb9c76fa8ed9e0acfc045a68e92f2ab133 (diff) |
Replace some get calls on <bool> extenisble types with hasext
Diffstat (limited to 'modules/commands/cs_topic.cpp')
-rw-r--r-- | modules/commands/cs_topic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_topic.cpp b/modules/commands/cs_topic.cpp index eb8147ec8..fe393de65 100644 --- a/modules/commands/cs_topic.cpp +++ b/modules/commands/cs_topic.cpp @@ -100,11 +100,11 @@ class CommandCSTopic : public Command { const Anope::string &topic = params.size() > 2 ? params[2] : ""; - bool *has_topiclock = topiclock->Get(ci); + bool has_topiclock = topiclock->HasExt(ci); topiclock->Unset(ci); ci->c->ChangeTopic(source.GetNick(), topic, Anope::CurTime); if (has_topiclock) - topiclock->Set(ci, *has_topiclock); + topiclock->Set(ci); bool override = !source.AccessFor(ci).HasPriv("TOPIC"); Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << (!topic.empty() ? "to change the topic to: " : "to unset the topic") << (!topic.empty() ? topic : ""); |