summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules.c b/src/modules.c
index 7d4f1942d..79be7d742 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -1044,12 +1044,13 @@ void Module::NoticeLang(char *source, User * u, int number, ...)
char *s, *t, *buf;
/* Find the users lang, and use it if we can */
- if (u && u->na && u->na->nc) {
- mlang = u->na->nc->language;
+ if (u && u->nc) {
+ mlang = u->nc->language;
}
/* If the users lang isnt supported, drop back to English */
- if (this->lang[mlang].argc == 0) {
+ if (this->lang[mlang].argc == 0)
+ {
mlang = LANG_EN_US;
}
@@ -1081,8 +1082,8 @@ const char *Module::GetLangString(User * u, int number)
int mlang = NSDefLanguage;
/* Find the users lang, and use it if we can */
- if (u && u->na && u->na->nc)
- mlang = u->na->nc->language;
+ if (u && u->nc)
+ mlang = u->nc->language;
/* If the users lang isnt supported, drop back to English */
if (this->lang[mlang].argc == 0)