mirror of
https://github.com/anope/anope.git
synced 2026-07-02 18:53:12 +02:00
BUILD : 1.7.10 (844) BUGS : NOTES : Fixed module languages defaulting to english instead of NSDefLanguage
git-svn-id: svn://svn.anope.org/anope/trunk@844 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@597 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
a9c7109070
commit
f657bbbd5c
+2
-2
@@ -2486,7 +2486,7 @@ void moduleNoticeLang(char *source, User * u, int number, ...)
|
||||
va_list va;
|
||||
char buffer[4096], outbuf[4096];
|
||||
char *fmt = NULL;
|
||||
int lang = LANG_EN_US;
|
||||
int lang = NSDefLanguage;
|
||||
char *s, *t, *buf;
|
||||
|
||||
if ((mod_current_module_name) && (!mod_current_module || strcmp(mod_current_module_name, mod_current_module->name))) {
|
||||
@@ -2497,7 +2497,7 @@ void moduleNoticeLang(char *source, User * u, int number, ...)
|
||||
lang = u->na->nc->language;
|
||||
}
|
||||
|
||||
/* If the users lang isnt supported, drop back to enlgish */
|
||||
/* If the users lang isnt supported, drop back to English */
|
||||
if (mod_current_module->lang[lang].argc == 0) {
|
||||
lang = LANG_EN_US;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user