summaryrefslogtreecommitdiff
path: root/src/send.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:11:32 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 19:11:32 +0000
commitd3f58dcd4f97589ddeddd665eedede29ad6baa28 (patch)
treebb53cade468e006cb5f6dd263d124f6b66b345d4 /src/send.c
parent552c4a47b18a3373b46512a00bfce360f30a5cea (diff)
Replaced notice() with direct call to SendMessage() in IRCDProto class.
Added SendNoticeInternal() function to IRCDProto class, now SendNotice() is a stub to handle varargs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1336 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/send.c b/src/send.c
index 7474a380b..4da656d7f 100644
--- a/src/send.c
+++ b/src/send.c
@@ -265,32 +265,3 @@ void notice_help(const char *source, User * dest, int message, ...)
}
va_end(args);
}
-
-/*************************************************************************/
-
-/**
- * Send a NOTICE from the given source to the given nick.
- * @param source Orgin of the Message
- * @param dest Destination of the Message
- * @param fmt Format of the Message
- * @param ... any number of parameters
- * @return void
- */
-void notice(char *source, const char *dest, const char *fmt, ...)
-{
- va_list args;
- char buf[BUFSIZE];
- *buf = '\0';
-
- if (fmt) {
- va_start(args, fmt);
- vsnprintf(buf, BUFSIZE - 1, fmt, args);
-
- if (NSDefFlags & NI_MSG) {
- ircdproto->SendPrivmsg(source, dest, buf);
- } else {
- ircdproto->SendNotice(source, dest, buf);
- }
- va_end(args);
- }
-}