1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 03:06: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
+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)