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:
parent
01bfee779b
commit
75deeba7c7
+6
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user