summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 21:18:47 -0400
committerAdam <Adam@anope.org>2013-05-05 21:18:47 -0400
commit3f5f84c92c1a424843b430c60a50efa600ae1236 (patch)
treeae16ada522b5cbed074f8d154d01e8657d195318 /modules
parent5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e (diff)
The const char* specialization of this no longer works
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/bs_set.cpp2
-rw-r--r--modules/commands/cs_list.cpp2
-rw-r--r--modules/commands/ns_register.cpp4
-rw-r--r--modules/commands/ns_resetpass.cpp4
-rw-r--r--modules/commands/ns_set.cpp4
-rw-r--r--modules/pseudoclients/memoserv.cpp4
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);