From d1611b640bcd27e1a91a99ef32127bc722e50a36 Mon Sep 17 00:00:00 2001 From: rburchell Date: Sun, 15 Feb 2009 22:29:18 +0000 Subject: Remove User::na, use User::nc everywhere. Will probably break everything, but opens the door to decoupling NC from NA, and means commands can now be run without bothering about changinc nick :) More tweaking for na/nc usage. It compiles, but it's still a work in progress. Again, this compiles, but I *bet* there's no chance in hell it'll work. :) Slightly better. Set User::nc correctly. Fix crash with unregistered nicks in core and ns_access. Fix glist to work when you're not on that particular nick. Fix ns_set to not crash and burn horribly. Fix ns_set and ns_logout to not do bad things. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2076 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules.c') 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) -- cgit