summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commit6fa5553b4ba46641b94025cfee7de07550823fdf (patch)
tree2ef8e76a7f2125819bc4055c7117bd12899d7292 /include/services.h
parentefb458a927ce9b0d3542c0fe6093c898f171f036 (diff)
Added cmd_notice() function to IRCDProtoNew class. (Replaces cmd_notice2)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1229 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/services.h b/include/services.h
index 616044fae..a9a959e8c 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1059,7 +1059,6 @@ typedef struct ircd_proto_ {
void (*ircd_cmd_372_error)(const char *source);
void (*ircd_cmd_375)(const char *source);
void (*ircd_cmd_376)(const char *source);
- void (*ircd_cmd_notice2)(const char *source, const char *dest, const char *msg);
void (*ircd_cmd_serv_notice)(const char *source, const char *dest, const char *msg);
void (*ircd_cmd_serv_privmsg)(const char *source, const char *dest, const char *msg);
void (*ircd_cmd_bot_chan_mode)(const char *nick, const char *chan);
@@ -1309,7 +1308,11 @@ class IRCDProtoNew {
{
if (!buf || !dest) return;
if (NSDefFlags & NI_MSG) cmd_privmsg(source, dest, buf);
- else send_cmd(source, "NOTICE %s :%s", dest, buf);
+ else cmd_notice(source, dest, buf);
+ }
+ virtual void cmd_notice(const char *source, const char *dest, const char *msg)
+ {
+ send_cmd(source, "NOTICE %s :%s", dest, msg);
}
virtual void cmd_privmsg(const char *source, const char *dest, const char *buf)
{