diff options
author | Adam <Adam@anope.org> | 2016-11-25 16:35:10 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-11-25 16:35:56 -0500 |
commit | a635344582a13d935631fbe930d79d3788359c8a (patch) | |
tree | cd7b372d02f94c7f6c18542e06d29deff0f19842 /modules/chanserv/enforce.cpp | |
parent | f30d99f81f6fb8abd7ca555068173bad6c99e07a (diff) |
Rename most ext fields names to be consistent with everything else, add accessors for many
Diffstat (limited to 'modules/chanserv/enforce.cpp')
-rw-r--r-- | modules/chanserv/enforce.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/chanserv/enforce.cpp b/modules/chanserv/enforce.cpp index 5a57d3cc2..c2a9fbe2d 100644 --- a/modules/chanserv/enforce.cpp +++ b/modules/chanserv/enforce.cpp @@ -32,8 +32,8 @@ class CommandCSEnforce : public Command * part of the code. This way we can enforce SECUREOPS even * if it's off. */ - bool hadsecureops = ci->HasFieldS("SECUREOPS"); - ci->SetS<bool>("SECUREOPS", true); + bool hadsecureops = ci->IsSecureOps(); + ci->SetSecureOps(true); for (Channel::ChanUserList::iterator it = ci->c->users.begin(), it_end = ci->c->users.end(); it != it_end; ++it) { @@ -43,7 +43,7 @@ class CommandCSEnforce : public Command } if (!hadsecureops) - ci->UnsetS<bool>("SECUREOPS"); + ci->SetSecureOps(false); source.Reply(_("\002Secureops\002 enforced on \002{0}\002."), ci->GetName()); } |