diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
commit | d64b3aa890976ef888c11e1c24da5b692f1d67d3 (patch) | |
tree | c58cfc10f8765af1869d6e76d140391aeb5599d9 /src/protocol/ratbox.c | |
parent | e6111d9ff4cb897b5c8bd00fcde339ffce1b66bf (diff) |
Remove anope_cmd_privmsg2 (it's identical to anope_cmd_privmsg!)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1207 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 9f527732e..e6427b232 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -450,7 +450,7 @@ void ratbox_cmd_notice(const char *source, const char *dest, const char *buf) } if (NSDefFlags & NI_MSG) { - ratbox_cmd_privmsg2(source, dest, buf); + ratbox_cmd_privmsg(source, dest, buf); } else { ud = find_uid(source); u = finduser(dest); @@ -485,17 +485,6 @@ void ratbox_cmd_privmsg(const char *source, const char *dest, const char *buf) (UseTS6 ? (ud2 ? ud2->uid : dest) : dest), buf); } -void ratbox_cmd_privmsg2(const char *source, const char *dest, const char *msg) -{ - Uid *ud, *ud2; - - ud = find_uid(source); - ud2 = find_uid(dest); - - send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "PRIVMSG %s :%s", - (UseTS6 ? (ud2 ? ud2->uid : dest) : dest), msg); -} - void ratbox_cmd_serv_notice(const char *source, const char *dest, const char *msg) { send_cmd(source, "NOTICE $$%s :%s", dest, msg); @@ -1776,7 +1765,6 @@ void moduleAddAnopeCmds() pmodule_cmd_notice(ratbox_cmd_notice); pmodule_cmd_notice2(ratbox_cmd_notice2); pmodule_cmd_privmsg(ratbox_cmd_privmsg); - pmodule_cmd_privmsg2(ratbox_cmd_privmsg2); pmodule_cmd_serv_notice(ratbox_cmd_serv_notice); pmodule_cmd_serv_privmsg(ratbox_cmd_serv_privmsg); pmodule_cmd_bot_chan_mode(ratbox_cmd_bot_chan_mode); |