From 0db8644763bda9346ccf593051dd0256cd8d917f Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 5 Mar 2006 09:48:41 +0000 Subject: # BUILD : 1.7.13 (1005) # BUGS : 469 # NOTES : Applied Trystan's moduleNoticeLang() patch git-svn-id: svn://svn.anope.org/anope/trunk@1005 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@730 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules.c b/src/modules.c index 642f53659..e929d5a6b 100644 --- a/src/modules.c +++ b/src/modules.c @@ -2536,7 +2536,7 @@ void moduleNoticeLang(char *source, User * u, int number, ...) } /* Find the users lang, and use it if we can */ - if (u->na && u->na->nc) { + if (u && u->na && u->na->nc) { lang = u->na->nc->language; } @@ -2551,7 +2551,7 @@ void moduleNoticeLang(char *source, User * u, int number, ...) buf = sstrdup(fmt); va_start(va, number); - vsnprintf(buffer, 4095, outbuf, va); + vsnprintf(buffer, 4095, buf, va); va_end(va); s = buffer; while (*s) { -- cgit