diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/bs_act.c | 2 | ||||
-rw-r--r-- | src/ircd.c | 29 |
2 files changed, 1 insertions, 30 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c index 2cdf2e28b..4e0d3431a 100644 --- a/src/core/bs_act.c +++ b/src/core/bs_act.c @@ -82,7 +82,7 @@ int do_act(User * u) notice_lang(s_BotServ, u, ACCESS_DENIED); else { strnrepl(text, BUFSIZE, "\001", ""); - anope_cmd_action(ci->bi->nick, ci->name, "%s", text); + ircdproto->SendAction(ci->bi->nick, ci->name, "%s", text); ci->bi->lastmsg = time(NULL); if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel)) ircdproto->SendPrivmsg(ci->bi->nick, LogChannel, "ACT %s %s %s", diff --git a/src/ircd.c b/src/ircd.c index 39e17df7c..90774fd7c 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -43,35 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av) ircdproto->ProcessUsermodes(user, ac, av); } -void anope_cmd_message(const char *source, const char *dest, const char *fmt, ...) -{ - va_list args; - char buf[BUFSIZE] = ""; - if (fmt) { - va_start(args, fmt); - vsnprintf(buf, BUFSIZE - 1, fmt, args); - va_end(args); - } - BotInfo *bi = findbot(source); - ircdproto->SendMessage(bi, dest, buf); -} - -void anope_cmd_action(const char *source, const char *dest, const char *fmt, ...) -{ - va_list args; - char buf[BUFSIZE] = "", actionbuf[BUFSIZE] = ""; - if (fmt) { - va_start(args, fmt); - vsnprintf(buf, BUFSIZE - 1, fmt, args); - va_end(args); - } - else return; - if (!*buf) return; - snprintf(actionbuf, BUFSIZE - 1, "%cACTION %s%c", 1, buf, 1); - BotInfo *bi = findbot(source); - ircdproto->SendPrivmsg(bi, dest, actionbuf); -} - void anope_SendGlobalNotice(const char *source, const char *dest, const char *msg) { ircdproto->SendGlobalNotice(source, dest, msg); |