From 65911dd1be20dc29f4e98561a85cdb1d66197699 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 14 Aug 2013 19:50:08 -0400 Subject: Replace some get calls on extenisble types with hasext --- modules/commands/cs_topic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_topic.cpp') 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 : ""); -- cgit