mirror of
https://github.com/anope/anope.git
synced 2026-07-01 12:06:38 +02:00
Fixed replacing %R's in email messages and fixed anopesmtp to really work
This commit is contained in:
+8
-1
@@ -102,7 +102,14 @@ const Anope::string GetString(const char *domain, Anope::string language, const
|
||||
setlocale(LC_ALL, "");
|
||||
#endif
|
||||
|
||||
return ret ? ret : "";
|
||||
Anope::string translated = ret ? ret : "";
|
||||
|
||||
if (Config->UseStrictPrivMsg)
|
||||
translated = translated.replace_all_cs("%R", "/");
|
||||
else
|
||||
translated = translated.replace_all_cs("%R", "/msg ");
|
||||
|
||||
return translated;
|
||||
}
|
||||
#else
|
||||
const Anope::string GetString(const char *domain, const Anope::string &language, const Anope::string &string)
|
||||
|
||||
Reference in New Issue
Block a user