diff options
Diffstat (limited to 'plugins/StopSpamPlus/src/settings.cpp')
-rw-r--r-- | plugins/StopSpamPlus/src/settings.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/plugins/StopSpamPlus/src/settings.cpp b/plugins/StopSpamPlus/src/settings.cpp index 0e133956d4..01d11c7570 100644 --- a/plugins/StopSpamPlus/src/settings.cpp +++ b/plugins/StopSpamPlus/src/settings.cpp @@ -5,10 +5,10 @@ Settings g_sets; /////////////////////////////////////////////////////////////////////////////////////////
Settings::Settings() :
- Question(MODULENAME, "Question", TranslateW(L"Spammers made me to install small anti-spam system you are now speaking with. Please reply \"nospam\" without quotes and spaces if you want to contact me.")),
- AuthRepl(MODULENAME, "AuthReply", TranslateW(L"StopSpam: send a message and reply to an anti-spam bot question.")),
+ Question(MODULENAME, "Question"),
+ AuthRepl(MODULENAME, "AuthReply"),
Answer(MODULENAME, "Answer", L"nospam"),
- Congratulation(MODULENAME, "Congratulation", TranslateW(L"Congratulations! You just passed human/robot test. Now you can write me a message.")),
+ Congratulation(MODULENAME, "Congratulation"),
DisabledProtoList(MODULENAME, "DisabledProtoList", "MetaContacts RSSNews"),
InfTalkProtection(MODULENAME, "InfTalkProtection", 1),
AddPermanent(MODULENAME, "AddPermanent", 0),
@@ -20,3 +20,21 @@ Settings::Settings() : HistLog(MODULENAME, "HistLog", 0)
{
}
+
+const wchar_t* Settings::getQuestion()
+{
+ const wchar_t *res = Question;
+ return (res != nullptr) ? res : TranslateW(L"Spammers made me to install small anti-spam system you are now speaking with. Please reply \"nospam\" without quotes and spaces if you want to contact me.");
+}
+
+const wchar_t* Settings::getReply()
+{
+ const wchar_t *res = AuthRepl;
+ return (res != nullptr) ? res : TranslateW(L"StopSpam: send a message and reply to an anti-spam bot question.");
+}
+
+const wchar_t* Settings::getCongrats()
+{
+ const wchar_t *res = Congratulation;
+ return (res != nullptr) ? res : TranslateW(L"Congratulations! You just passed human/robot test. Now you can write me a message.");
+}
|