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 | |
parent | 4abfdcbb9c76fa8ed9e0acfc045a68e92f2ab133 (diff) |
Replace some get calls on <bool> extenisble types with hasext
-rw-r--r-- | modules/commands/cs_topic.cpp | 4 | ||||
-rw-r--r-- | modules/pseudoclients/botserv.cpp | 6 |
2 files changed, 5 insertions, 5 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 : ""); diff --git a/modules/pseudoclients/botserv.cpp b/modules/pseudoclients/botserv.cpp index aec5631d8..a016c9ef2 100644 --- a/modules/pseudoclients/botserv.cpp +++ b/modules/pseudoclients/botserv.cpp @@ -18,7 +18,7 @@ class BotServCore : public Module public: BotServCore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PSEUDOCLIENT | VENDOR), - persist("persist"), inhabit("inhabit") + persist("PERSIST"), inhabit("inhabit") { } @@ -114,7 +114,7 @@ class BotServCore : public Module void OnLeaveChannel(User *u, Channel *c) anope_override { /* Channel is persistent, it shouldn't be deleted and the service bot should stay */ - if (c->ci && persist && persist->Get(c->ci)) + if (c->ci && persist && persist->HasExt(c->ci)) return; /* Channel is syncing from a netburst, don't destroy it as more users are probably wanting to join immediatly @@ -124,7 +124,7 @@ class BotServCore : public Module return; /* Additionally, do not delete this channel if ChanServ/a BotServ bot is inhabiting it */ - if (inhabit && inhabit->Get(c)) + if (inhabit && inhabit->HasExt(c)) return; /* This is called prior to removing the user from the channnel, so c->users.size() - 1 should be safe */ |