summaryrefslogtreecommitdiff
path: root/src/ircd.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 16:03:16 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 16:03:16 +0000
commite5051e4aa5cfc9e80ac965a6a82e4cab8d17387c (patch)
tree0ccaead6e96584ebc2376604e5ca5c34c11b12b1 /src/ircd.c
parentb7ed70140d6e755b49cdd3c4b9d85ec6abf30cd7 (diff)
Merge commit 'cbx/anopeng-uid' into anopeng-uid
Conflicts: include/extern.h include/services.h src/protocol/bahamut.c src/protocol/inspircd11.c git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1320 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/ircd.c')
-rw-r--r--src/ircd.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ircd.c b/src/ircd.c
index 273c7922a..8b7bbae13 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -55,7 +55,8 @@ void anope_SendAkillDel(const char *user, const char *host)
void anope_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when)
{
- ircdproto->cmd_topic(whosets, chan, whosetit, topic, when);
+ BotInfo *bi = findbot(whosets);
+ ircdproto->SendTopic(bi, chan, whosetit, topic, when);
}
void anope_SendVhostDel(User *u)
@@ -140,12 +141,14 @@ void anope_cmd_message(const char *source, const char *dest, const char *fmt, ..
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
- ircdproto->cmd_message(source, dest, buf);
+ BotInfo *bi = findbot(source);
+ ircdproto->SendMessage(bi, dest, buf);
}
void anope_cmd_notice(const char *source, const char *dest, const char *msg)
{
- ircdproto->cmd_notice(source, dest, msg);
+ BotInfo *bi = findbot(source);
+ ircdproto->SendNotice(bi, dest, msg);
}
void anope_cmd_action(const char *source, const char *dest, const char *fmt, ...)
@@ -160,7 +163,8 @@ void anope_cmd_action(const char *source, const char *dest, const char *fmt, ...
else return;
if (!*buf) return;
snprintf(actionbuf, BUFSIZE - 1, "%cACTION %s%c", 1, buf, 1);
- ircdproto->cmd_privmsg(source, dest, actionbuf);
+ BotInfo *bi = findbot(source);
+ ircdproto->SendPrivmsg(bi, dest, actionbuf);
}
void anope_cmd_privmsg(const char *source, const char *dest, const char *fmt, ...)
@@ -172,7 +176,8 @@ void anope_cmd_privmsg(const char *source, const char *dest, const char *fmt, ..
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
- ircdproto->cmd_privmsg(source, dest, buf);
+ BotInfo *bi = findbot(source);
+ ircdproto->SendPrivmsg(bi, dest, buf);
}
void anope_SendGlobalNotice(const char *source, const char *dest, const char *msg)