summaryrefslogtreecommitdiff
path: root/src/ircd.c
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 19:06:00 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 19:06:00 +0000
commit552c4a47b18a3373b46512a00bfce360f30a5cea (patch)
tree3a458d3c53bfe78d63c28fe520b2dd83b9a0d11f /src/ircd.c
parent8001cc147dded5bb8acefe6cb93d6defb3f92562 (diff)
Replaced anope_cmd_privmsg() and privmsg() with direct call to SendPrivmsg() in IRCDProto class.
Added SendPrivmsgInternal() function to IRCDProto class, now SendPrivmsg() is a stub to handle varargs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1335 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/ircd.c')
-rw-r--r--src/ircd.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/ircd.c b/src/ircd.c
index 5a75668ee..39e17df7c 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -72,19 +72,6 @@ void anope_cmd_action(const char *source, const char *dest, const char *fmt, ...
ircdproto->SendPrivmsg(bi, dest, actionbuf);
}
-void anope_cmd_privmsg(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->SendPrivmsg(bi, dest, buf);
-}
-
void anope_SendGlobalNotice(const char *source, const char *dest, const char *msg)
{
ircdproto->SendGlobalNotice(source, dest, msg);