summaryrefslogtreecommitdiff
path: root/include
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
commit76cc8d0462422eed9d7af255b152c24697821309 (patch)
tree6a7675c0e17fb4f7472888c6a872ff6cac22c888 /include
parent9ef7f06be73f820af0a66f084488acdd3929d366 (diff)
Added cmd_serv_notice() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1231 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/extern.h1
-rw-r--r--include/services.h5
2 files changed, 4 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h
index d6542ddf0..94a6328ac 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -611,7 +611,6 @@ E void pmodule_cmd_372(void (*func) (const char *source, const char *msg));
E void pmodule_cmd_372_error(void (*func) (const char *source));
E void pmodule_cmd_375(void (*func) (const char *source));
E void pmodule_cmd_376(void (*func) (const char *source));
-E void pmodule_cmd_serv_notice(void (*func) (const char *source, const char *dest, const char *msg));
E void pmodule_cmd_serv_privmsg(void (*func) (const char *source, const char *dest, const char *msg));
E void pmodule_cmd_bot_chan_mode(void (*func) (const char *nick, const char *chan));
E void pmodule_cmd_351(void (*func) (const char *source));
diff --git a/include/services.h b/include/services.h
index 11a833344..8e3ee7611 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1060,7 +1060,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_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);
void (*ircd_cmd_351)(const char *source);
@@ -1320,6 +1319,10 @@ class IRCDProtoNew {
if (!buf || !dest) return;
send_cmd(source, "PRIVMSG %s :%s", dest, buf);
}
+ virtual void cmd_serv_notice(const char *source, const char *dest, const char *msg)
+ {
+ send_cmd(source, "NOTICE %s%s :%s", ircd->globaltldprefix, dest, msg);
+ }
};
/*************************************************************************/