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
commita3d2bc65e2ea2327966257d6170f46b0f7f611f3 (patch)
treedd08d9cb3c15db68f32dc3663a4f6721aa0bdebf /include
parentc4d520b465f8aa7f5924b17b697fa760b6ead409 (diff)
Added cmd_serv_privmsg() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1233 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 54e9134e8..6e56befe4 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -610,7 +610,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_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));
E void pmodule_cmd_quit(void (*func) (const char *source, const char *buf));
diff --git a/include/services.h b/include/services.h
index 8e3ee7611..c60d6cbd0 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_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);
void (*ircd_cmd_quit)(const char *source, const char *buf);
@@ -1323,6 +1322,10 @@ class IRCDProtoNew {
{
send_cmd(source, "NOTICE %s%s :%s", ircd->globaltldprefix, dest, msg);
}
+ virtual void cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
+ {
+ send_cmd(source, "PRIVMSG %s%s :%s", ircd->globaltldprefix, dest, msg);
+ }
};
/*************************************************************************/