1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 00:26:38 +02:00

Fixed make strict build and cleaned up some warnings

This commit is contained in:
Adam
2010-09-07 18:39:57 -04:00
parent 7dfc8e8ee8
commit 3a97d196f9
10 changed files with 36 additions and 36 deletions
+18 -18
View File
@@ -274,24 +274,24 @@ void anope_cmd_notice2(char *source, char *dest, char *msg)
void anope_cmd_action(char *source, char *dest, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE];
char actionbuf[BUFSIZE];
*buf = '\0';
*actionbuf = '\0';
if (fmt) {
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_list args;
char buf[BUFSIZE];
char actionbuf[BUFSIZE];
*buf = '\0';
*actionbuf = '\0';
if (fmt) {
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
if (!*buf) {
return;
}
snprintf(actionbuf, BUFSIZE - 1, "%cACTION %s %c", 1, buf, 1);
ircdproto.ircd_cmd_privmsg(source, dest, actionbuf);
}
void anope_cmd_privmsg(char *source, char *dest, const char *fmt, ...)
{