diff options
author | Adam <Adam@anope.org> | 2013-05-05 21:18:47 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-05 21:18:47 -0400 |
commit | 3f5f84c92c1a424843b430c60a50efa600ae1236 (patch) | |
tree | ae16ada522b5cbed074f8d154d01e8657d195318 /modules | |
parent | 5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e (diff) |
The const char* specialization of this no longer works
Diffstat (limited to 'modules')
-rw-r--r-- | modules/commands/bs_set.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_list.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_register.cpp | 4 | ||||
-rw-r--r-- | modules/commands/ns_resetpass.cpp | 4 | ||||
-rw-r--r-- | modules/commands/ns_set.cpp | 4 | ||||
-rw-r--r-- | modules/pseudoclients/memoserv.cpp | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp index 20a53faf3..95500ac94 100644 --- a/modules/commands/bs_set.cpp +++ b/modules/commands/bs_set.cpp @@ -315,7 +315,7 @@ class CommandBSSetFantasy : public Command "Note that users wanting to use fantaisist\n" "commands MUST have enough access for both\n" "the FANTASIA and the command they are executing."), - Config->GetModule("botserv")->Get<const char *>("fantasycharacter", "!")); + Config->GetModule("botserv")->Get<const Anope::string>("fantasycharacter", "!").c_str()); return true; } }; diff --git a/modules/commands/cs_list.cpp b/modules/commands/cs_list.cpp index 9718b73a1..13492c007 100644 --- a/modules/commands/cs_list.cpp +++ b/modules/commands/cs_list.cpp @@ -155,7 +155,7 @@ class CommandCSList : public Command { source.Reply(" "); source.Reply(_("Regex matches are also supported using the %s engine.\n" - "Enclose your pattern in // if this is desired."), Config->GetBlock("options")->Get<const char *>("regexengine")); + "Enclose your pattern in // if this is desired."), Config->GetBlock("options")->Get<const Anope::string>("regexengine").c_str()); } return true; diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 6da7d4db1..da2f6de59 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -373,8 +373,8 @@ static bool SendRegmail(User *u, const NickAlias *na, const BotInfo *bi) else codebuf = *code; - Anope::string subject = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const char *>("registration_subject")), - message = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const char *>("registration_message")); + Anope::string subject = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const Anope::string>("registration_subject").c_str()), + message = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const Anope::string>("registration_message").c_str()); subject = subject.replace_all_cs("%n", na->nick); subject = subject.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname")); diff --git a/modules/commands/ns_resetpass.cpp b/modules/commands/ns_resetpass.cpp index 62fa0905f..bf1e8dacf 100644 --- a/modules/commands/ns_resetpass.cpp +++ b/modules/commands/ns_resetpass.cpp @@ -139,8 +139,8 @@ static bool SendResetEmail(User *u, const NickAlias *na, const BotInfo *bi) for (idx = 0; idx < 20; ++idx) passcode += chars[1 + static_cast<int>((static_cast<float>(max - min)) * static_cast<uint16_t>(rand()) / 65536.0) + min]; - Anope::string subject = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const char *>("reset_subject")), - message = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const char *>("reset_message")); + Anope::string subject = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const Anope::string>("reset_subject").c_str()), + message = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const Anope::string>("reset_message").c_str()); subject = subject.replace_all_cs("%n", na->nick); subject = subject.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname")); diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp index f0bff477e..93024b437 100644 --- a/modules/commands/ns_set.cpp +++ b/modules/commands/ns_set.cpp @@ -464,8 +464,8 @@ class CommandNSSetEmail : public Command u->Account()->Extend("ns_set_email_passcode", new ExtensibleItemClass<Anope::string>(code)); - Anope::string subject = Config->GetBlock("mail")->Get<const char *>("emailchange_subject"), - message = Config->GetBlock("mail")->Get<const char *>("emailchange_message"); + Anope::string subject = Config->GetBlock("mail")->Get<const Anope::string>("emailchange_subject"), + message = Config->GetBlock("mail")->Get<const Anope::string>("emailchange_message"); subject = subject.replace_all_cs("%e", u->Account()->email); subject = subject.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname")); diff --git a/modules/pseudoclients/memoserv.cpp b/modules/pseudoclients/memoserv.cpp index 13a34137c..1988961cd 100644 --- a/modules/pseudoclients/memoserv.cpp +++ b/modules/pseudoclients/memoserv.cpp @@ -15,8 +15,8 @@ static bool SendMemoMail(NickCore *nc, MemoInfo *mi, Memo *m) { - Anope::string subject = Language::Translate(nc, Config->GetBlock("mail")->Get<const char *>("memo_subject")), - message = Language::Translate(Config->GetBlock("mail")->Get<const char *>("memo_message")); + Anope::string subject = Language::Translate(nc, Config->GetBlock("mail")->Get<const Anope::string>("memo_subject").c_str()), + message = Language::Translate(Config->GetBlock("mail")->Get<const Anope::string>("memo_message").c_str()); subject = subject.replace_all_cs("%n", nc->display); subject = subject.replace_all_cs("%s", m->sender); |