summaryrefslogtreecommitdiff
path: root/src/modules/hs_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/hs_request.c')
-rw-r--r--src/modules/hs_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 784fcc59d..84f19806c 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -732,8 +732,8 @@ void my_memo_lang(User *u, const char *name, int z, int number, ...)
u2 = finduser(name);
/* Find the users lang, and use it if we cant */
- if (u2 && u2->nc)
- lang = u2->nc->language;
+ if (u2 && u2->Account())
+ lang = u2->Account()->language;
/* If the users lang isnt supported, drop back to enlgish */
if (!me->lang[lang].argc)