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/language.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/language.c')
-rw-r--r-- | src/language.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/language.c b/src/language.c index 7e152254f..51aec1031 100644 --- a/src/language.c +++ b/src/language.c @@ -233,7 +233,7 @@ void lang_init() int strftime_lang(char *buf, int size, User * u, int format, struct tm *tm) { - int language = u && u->nc ? u->nc->language : Config.NSDefLanguage; + int language = u && u->Account() ? u->Account()->language : Config.NSDefLanguage; char tmpbuf[BUFSIZE], buf2[BUFSIZE]; char *s; int i, ret; @@ -326,7 +326,7 @@ const char *getstring(NickCore *nc, int index) const char *getstring(User *u, int index) { - return getstring(u->nc, index); + return getstring(u->Account(), index); } const char *getstring(int index) |