diff options
author | Adam <Adam@anope.org> | 2014-12-10 02:09:51 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-12-10 02:09:51 -0500 |
commit | 50acad5ce451b44b469890fe46ce14c7ffd031ca (patch) | |
tree | 231101b9e475dacd58b4d03d1a69df9fe7a82f28 /src/messages.cpp | |
parent | 3e5a5e1c669f6027b897f7358d45f92e1552f746 (diff) |
Unconst these config Get<Anope::string> calls as it makes no sense
Diffstat (limited to 'src/messages.cpp')
-rw-r--r-- | src/messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages.cpp b/src/messages.cpp index 9cdab67c1..a19c71332 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -237,7 +237,7 @@ void MOTD::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) if (s != Me) return; - FILE *f = fopen(Config->GetBlock("serverinfo")->Get<const Anope::string>("motd").c_str(), "r"); + FILE *f = fopen(Config->GetBlock("serverinfo")->Get<Anope::string>("motd").c_str(), "r"); if (f) { IRCD->SendNumeric(375, source.GetSource(), ":- %s Message of the Day", s->GetName().c_str()); @@ -475,7 +475,7 @@ void Whois::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) IRCD->SendNumeric(311, source.GetSource(), "%s %s %s * :%s", u->nick.c_str(), u->GetIdent().c_str(), u->host.c_str(), u->realname.c_str()); if (bi) IRCD->SendNumeric(307, source.GetSource(), "%s :is a registered nick", bi->nick.c_str()); - IRCD->SendNumeric(312, source.GetSource(), "%s %s :%s", u->nick.c_str(), Me->GetName().c_str(), Config->GetBlock("serverinfo")->Get<const Anope::string>("description").c_str()); + IRCD->SendNumeric(312, source.GetSource(), "%s %s :%s", u->nick.c_str(), Me->GetName().c_str(), Config->GetBlock("serverinfo")->Get<Anope::string>("description").c_str()); if (bi) IRCD->SendNumeric(317, source.GetSource(), "%s %ld %ld :seconds idle, signon time", bi->nick.c_str(), static_cast<long>(Anope::CurTime - bi->lastmsg), static_cast<long>(bi->signon)); IRCD->SendNumeric(318, source.GetSource(), "%s :End of /WHOIS list.", u->nick.c_str()); |