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: [PATCH] # 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 --- Changes | 1 + src/modules.c | 4 ++-- version.log | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 1cbb977e1..e8f14ea6b 100644 --- a/Changes +++ b/Changes @@ -52,6 +52,7 @@ Provided by Trystan - 2006 02/20 F Fixed some TS6 issues with do_cmode() and do_nick() [#396] 02/12 F Double unbanning of in certain conditions. [ #00] 01/25 F va_copy issue for various platforms. [ #00] +03/05 F Fixed moduleNoteiceLang() issue. [#469] Provided by ThaPrince - 2006 02/28 F fantasy kick now honours protected, just like cs versions. [ #00] 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) { diff --git a/version.log b/version.log index 8dd5faafa..2c4c5ba68 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="13" VERSION_EXTRA="-svn" -VERSION_BUILD="1004" +VERSION_BUILD="1005" # $Log$ # +# BUILD : 1.7.13 (1005) +# BUGS : 469 +# NOTES : Applied Trystan's moduleNoticeLang() patch +# # BUILD : 1.7.13 (1004) # BUGS : 333 # NOTES : Fixed botserv's mode stuff with protect umode