diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
commit | 5587d9a543020f88ac05785921b719d87db98911 (patch) | |
tree | c3ec59a4aa6b76af00d2f4e46529e2bf05fcffe4 /src/protocol/bahamut.c | |
parent | 914e0359e0225f84698990117b45f8218a788983 (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/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 767450a43..3b11e732e 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -1035,7 +1035,7 @@ void bahamut_cmd_notice(const char *source, const char *dest, const char *buf) } if (NSDefFlags & NI_MSG) { - bahamut_cmd_privmsg(source, dest, buf); + ircd_proto.cmd_privmsg(source, dest, buf); } else { send_cmd(source, "NOTICE %s :%s", dest, buf); } @@ -1046,15 +1046,6 @@ void bahamut_cmd_notice2(const char *source, const char *dest, const char *msg) send_cmd(source, "NOTICE %s :%s", dest, msg); } -void bahamut_cmd_privmsg(const char *source, const char *dest, const char *buf) -{ - if (!buf) { - return; - } - - send_cmd(source, "PRIVMSG %s :%s", dest, buf); -} - void bahamut_cmd_serv_notice(const char *source, const char *dest, const char *msg) { send_cmd(source, "NOTICE $%s :%s", dest, msg); @@ -1527,7 +1518,6 @@ void moduleAddAnopeCmds() pmodule_cmd_376(bahamut_cmd_376); pmodule_cmd_notice(bahamut_cmd_notice); pmodule_cmd_notice2(bahamut_cmd_notice2); - pmodule_cmd_privmsg(bahamut_cmd_privmsg); pmodule_cmd_serv_notice(bahamut_cmd_serv_notice); pmodule_cmd_serv_privmsg(bahamut_cmd_serv_privmsg); pmodule_cmd_bot_chan_mode(bahamut_cmd_bot_chan_mode); |