diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 19:14:00 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 19:14:00 +0000 |
commit | d9771fe0aa0d9270279c4f52f4231ece79adbe19 (patch) | |
tree | 6cfedf88654c1b8624c4dd55f1bb29c3a36f9345 /src/ircd.c | |
parent | d3f58dcd4f97589ddeddd665eedede29ad6baa28 (diff) |
Added SendAction() function to IRCDProto class to replace use of anope_cmd_notice().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1337 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/ircd.c')
-rw-r--r-- | src/ircd.c | 29 |
1 files changed, 0 insertions, 29 deletions
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); |