diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 23:24:35 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 23:24:35 +0000 |
commit | 0b4b8d4d5486dc4adef41bfe6e127ae31953d993 (patch) | |
tree | 41d64a2a58911acaad92e5981abf95065beeb582 /src | |
parent | a95e4f7fceac0eb4ec6d8394c3f64f5b97bd8cb5 (diff) |
Make send.c compile.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1378 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/send.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/send.c b/src/send.c index 939268710..82e6727ae 100644 --- a/src/send.c +++ b/src/send.c @@ -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); |