1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 21:46:38 +02:00

Make send.c compile.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1378 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-10-02 23:24:35 +00:00
parent a95e4f7fce
commit 0b4b8d4d54
+8 -8
View File
@@ -102,9 +102,9 @@ void notice_server(char *source, Server * s, char *fmt, ...)
vsnprintf(buf, BUFSIZE - 1, fmt, args);
if (NSDefFlags & NI_MSG) {
ircdproto->SendGlobalPrivmsg(source, s->name, buf);
ircdproto->SendGlobalPrivmsg(findbot(source), s->name, buf);
} else {
ircdproto->SendGlobalNotice(source, s->name, buf);
ircdproto->SendGlobalNotice(findbot(source), s->name, buf);
}
va_end(args);
}
@@ -153,9 +153,9 @@ void notice_list(char *source, char *dest, char **text)
* with a single space.
*/
if (**text) {
ircdproto->SendNotice(source, dest, *text);
ircdproto->SendNotice(findbot(source), dest, *text);
} else {
ircdproto->SendNotice(source, dest, " ");
ircdproto->SendNotice(findbot(source), dest, " ");
}
text++;
}
@@ -202,9 +202,9 @@ void notice_lang(const char *source, User * dest, int message, ...)
if (UsePrivmsg && ((!dest->na && (NSDefFlags & NI_MSG))
|| (dest->na
&& (dest->na->nc->flags & NI_MSG)))) {
ircdproto->SendPrivmsg(source, dest->nick, *t ? t : " ");
ircdproto->SendPrivmsg(findbot(source), dest->nick, *t ? t : " ");
} else {
ircdproto->SendNotice(source, dest->nick, *t ? t : " ");
ircdproto->SendNotice(findbot(source), dest->nick, *t ? t : " ");
}
}
va_end(args);
@@ -258,9 +258,9 @@ void notice_help(const char *source, User * dest, int message, ...)
if (UsePrivmsg && ((!dest->na && (NSDefFlags & NI_MSG))
|| (dest->na
&& (dest->na->nc->flags & NI_MSG)))) {
ircdproto->SendPrivmsg(source, dest->nick, *outbuf ? outbuf : " ");
ircdproto->SendPrivmsg(findbot(source), dest->nick, *outbuf ? outbuf : " ");
} else {
ircdproto->SendNotice(source, dest->nick, *outbuf ? outbuf : " ");
ircdproto->SendNotice(findbot(source), dest->nick, *outbuf ? outbuf : " ");
}
}
va_end(args);