From 50acad5ce451b44b469890fe46ce14c7ffd031ca Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 10 Dec 2014 02:09:51 -0500 Subject: Unconst these config Get calls as it makes no sense --- modules/commands/cs_mode.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/commands/cs_mode.cpp') diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index d26e113d6..b525f51a5 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -881,14 +881,14 @@ class CSMode : public Module { Configuration::Block *block = conf->GetBlock("command", i); - const Anope::string &cname = block->Get("name"), - &cmd = block->Get("command"); + const Anope::string &cname = block->Get("name"), + &cmd = block->Get("command"); if (cname.empty() || cmd != "chanserv/modes") continue; - const Anope::string &set = block->Get("set"), - &unset = block->Get("unset"); + const Anope::string &set = block->Get("set"), + &unset = block->Get("unset"); if (set.empty() && unset.empty()) continue; @@ -946,7 +946,7 @@ class CSMode : public Module void OnChanRegistered(ChanServ::Channel *ci) override { Anope::string mlock; - spacesepstream sep(Config->GetModule(this)->Get("mlock", "+nt")); + spacesepstream sep(Config->GetModule(this)->Get("mlock", "+nt")); if (sep.GetToken(mlock)) { bool add = true; -- cgit