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:
+6
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user