summaryrefslogtreecommitdiff
path: root/src/protocol/unreal32.c
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
commit5587d9a543020f88ac05785921b719d87db98911 (patch)
treec3ec59a4aa6b76af00d2f4e46529e2bf05fcffe4 /src/protocol/unreal32.c
parent914e0359e0225f84698990117b45f8218a788983 (diff)
Added cmd_privmsg() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1225 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 2794ffeb9..6d41b2412 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -636,7 +636,7 @@ void unreal_cmd_notice(const char *source, const char *dest, const char *buf)
}
if (NSDefFlags & NI_MSG) {
- unreal_cmd_privmsg(source, dest, buf);
+ ircd_proto.cmd_privmsg(source, dest, buf);
} else {
send_cmd(source, "%s %s :%s", send_token("NOTICE", "B"), dest,
buf);
@@ -648,15 +648,6 @@ void unreal_cmd_notice2(const char *source, const char *dest, const char *msg)
send_cmd(source, "%s %s :%s", send_token("NOTICE", "B"), dest, msg);
}
-void unreal_cmd_privmsg(const char *source, const char *dest, const char *buf)
-{
- if (!buf) {
- return;
- }
-
- send_cmd(source, "%s %s :%s", send_token("PRIVMSG", "!"), dest, buf);
-}
-
void unreal_cmd_serv_notice(const char *source, const char *dest, const char *msg)
{
send_cmd(source, "%s $%s :%s", send_token("NOTICE", "B"), dest, msg);
@@ -2075,7 +2066,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_376(unreal_cmd_376);
pmodule_cmd_notice(unreal_cmd_notice);
pmodule_cmd_notice2(unreal_cmd_notice2);
- pmodule_cmd_privmsg(unreal_cmd_privmsg);
pmodule_cmd_serv_notice(unreal_cmd_serv_notice);
pmodule_cmd_serv_privmsg(unreal_cmd_serv_privmsg);
pmodule_cmd_bot_chan_mode(unreal_cmd_bot_chan_mode);