1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 14:53:12 +02:00

Fixed replacing %R with /msg on non gettext builds

This commit is contained in:
Adam
2010-11-21 20:36:46 -06:00
parent 56b269e6b3
commit d1ba920729
+6 -1
View File
@@ -114,7 +114,12 @@ const Anope::string GetString(const char *domain, Anope::string language, const
#else
const Anope::string GetString(const char *domain, Anope::string language, const Anope::string &string)
{
return string;
Anope::string translated = string;
if (Config->UseStrictPrivMsg)
translated = translated.replace_all_cs("%R", "/");
else
translated = translated.replace_all_cs("%R", "/msg ");
return translated;
}
#endif