summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-05 09:48:41 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-05 09:48:41 +0000
commit0db8644763bda9346ccf593051dd0256cd8d917f (patch)
tree30ca49c54c15fe79fd1e8e8deae09f633da91687 /src
parentc98b577f218d4cd154dc75d30c03d3c0a74f4e4b (diff)
# 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
Diffstat (limited to 'src')
-rw-r--r--src/modules.c4
1 files changed, 2 insertions, 2 deletions
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) {