1
0
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:
Adam
2010-10-31 20:47:34 -04:00
parent 2170823059
commit e3f368f67b
6 changed files with 141 additions and 260 deletions
+8 -1
View File
@@ -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)