summaryrefslogtreecommitdiff
path: root/modules/commands/os_defcon.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 21:05:43 -0400
committerAdam <Adam@anope.org>2013-05-05 21:05:43 -0400
commit5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e (patch)
tree3536557fea79ffd77bb5a885465e579eeeafb8ff /modules/commands/os_defcon.cpp
parent3e8752fe665c3cdf683f2b5fa271231fb3a624df (diff)
That doesn't work either, just don't use references.
find ./ -name '*.cpp' -exec sed -i 's/Get<const Anope::string\&>/Get<const Anope::string>/g' {} \;
Diffstat (limited to 'modules/commands/os_defcon.cpp')
-rw-r--r--modules/commands/os_defcon.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp
index a75d4691b..6d47d3a9f 100644
--- a/modules/commands/os_defcon.cpp
+++ b/modules/commands/os_defcon.cpp
@@ -345,26 +345,26 @@ class OSDefcon : public Module
DefconConfig dconfig;
dconfig.defaultlevel = block->Get<int>("defaultlevel");
- dconfig.defcons[4] = block->Get<const Anope::string &>("level4");
- dconfig.defcons[3] = block->Get<const Anope::string &>("level3");
- dconfig.defcons[2] = block->Get<const Anope::string &>("level2");
- dconfig.defcons[1] = block->Get<const Anope::string &>("level1");
+ dconfig.defcons[4] = block->Get<const Anope::string>("level4");
+ dconfig.defcons[3] = block->Get<const Anope::string>("level3");
+ dconfig.defcons[2] = block->Get<const Anope::string>("level2");
+ dconfig.defcons[1] = block->Get<const Anope::string>("level1");
dconfig.sessionlimit = block->Get<int>("sessionlimit");
- dconfig.akillreason = block->Get<const Anope::string &>("akillreason");
+ dconfig.akillreason = block->Get<const Anope::string>("akillreason");
dconfig.akillexpire = block->Get<time_t>("akillexpire");
- dconfig.chanmodes = block->Get<const Anope::string &>("chanmodes");
+ dconfig.chanmodes = block->Get<const Anope::string>("chanmodes");
dconfig.timeout = block->Get<time_t>("timeout");
dconfig.globalondefcon = block->Get<bool>("globalondefcon");
- dconfig.message = block->Get<const Anope::string &>("message");
- dconfig.offmessage = block->Get<const Anope::string &>("offmessage");
+ dconfig.message = block->Get<const Anope::string>("message");
+ dconfig.offmessage = block->Get<const Anope::string>("offmessage");
Module *session = ModuleManager::FindModule("os_session");
block = conf->GetModule(session);
dconfig.max_session_kill = block->Get<int>("maxsessionkill");
dconfig.session_autokill_expiry = block->Get<time_t>("sessionautokillexpiry");
- dconfig.sle_reason = block->Get<const Anope::string &>("sessionlimitexceeded");
- dconfig.sle_detailsloc = block->Get<const Anope::string &>("sessionlimitdetailsloc");
+ dconfig.sle_reason = block->Get<const Anope::string>("sessionlimitexceeded");
+ dconfig.sle_detailsloc = block->Get<const Anope::string>("sessionlimitdetailsloc");
if (dconfig.defaultlevel < 1 || dconfig.defaultlevel > 5)
throw ConfigException("The value for <defcon:defaultlevel> must be between 1 and 5");