1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 21:26:37 +02:00

BUILD : 1.7.10 (862) BUGS : NOTES : Fixed anope_cmd_part passing on "\0" instead of NULL when given NULL-arg

git-svn-id: svn://svn.anope.org/anope/trunk@862 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@613 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-08-29 14:09:02 +00:00
parent 01bfee779b
commit 75deeba7c7
3 changed files with 12 additions and 5 deletions
+1
View File
@@ -7,6 +7,7 @@ Provided by Anope Dev. <dev@anope.org> - 2005
07/01 A Events for channel access/xop updates. [ #00]
06/26 A New module pack module: hs_request. [ #00]
06/03 A Protocol files can now fill mod_current_buffer with custom code. [#389]
08/29 F Pseudo-clients can now part with no instead of an empty reason. [ #00]
08/29 F Memory leak when using mysql to save data. [ #00]
08/29 F Organised docs/FAQ a bit more and slightly restyled it. [ #00]
08/25 F Compiler warnings in tools with gcc4. [ #00]
+6 -4
View File
@@ -326,15 +326,17 @@ void anope_cmd_invite(char *source, char *chan, char *nick)
void anope_cmd_part(char *nick, char *chan, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE];
*buf = '\0';
if (fmt) {
va_list args;
char buf[BUFSIZE];
*buf = '\0';
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
ircdproto.ircd_cmd_part(nick, chan, buf);
} else {
ircdproto.ircd_cmd_part(nick, chan, NULL);
}
ircdproto.ircd_cmd_part(nick, chan, buf);
}
void anope_cmd_391(char *source, char *timestr)
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="10"
VERSION_BUILD="858"
VERSION_BUILD="862"
# $Log$
#
# BUILD : 1.7.10 (862)
# BUGS :
# NOTES : Fixed anope_cmd_part passing on "\0" instead of NULL when given NULL-arg
#
# BUILD : 1.7.10 (858)
# BUGS :
# NOTES : Converted docs/FAQ to a more organized format