diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-04 23:49:27 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-04 23:49:27 +0000 |
commit | 308070e01971b0cfaf77de20011f48ce4d6b5a1c (patch) | |
tree | 2bdfd84e35cf79eb20dc2a79ddd233789ca84fdf /src/modules.c | |
parent | 3d4cf39940144be19645a3a7cdecf95213b96f26 (diff) |
We now store a list of users using a NickCore in the NickCore, this prevents having to loop every user all the time to find them
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules.c b/src/modules.c index 7894c580b..3bc2e490f 100644 --- a/src/modules.c +++ b/src/modules.c @@ -688,8 +688,8 @@ void Module::NoticeLang(const char *source, User * u, int number, ...) char *s, *t, *buf; /* Find the users lang, and use it if we can */ - if (u && u->nc) { - mlang = u->nc->language; + if (u && u->Account()) { + mlang = u->Account()->language; } /* If the users lang isnt supported, drop back to English */ @@ -726,8 +726,8 @@ const char *Module::GetLangString(User * u, int number) int mlang = Config.NSDefLanguage; /* Find the users lang, and use it if we can */ - if (u && u->nc) - mlang = u->nc->language; + if (u && u->Account()) + mlang = u->Account()->language; /* If the users lang isnt supported, drop back to English */ if (this->lang[mlang].argc == 0) |