mirror of
https://github.com/anope/anope.git
synced 2026-07-07 18:23:14 +02:00
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
This commit is contained in:
@@ -1054,7 +1054,7 @@ void bahamut_cmd_notice(const char *source, const char *dest, const char *buf)
|
||||
}
|
||||
|
||||
if (NSDefFlags & NI_MSG) {
|
||||
bahamut_cmd_privmsg2(source, dest, buf);
|
||||
bahamut_cmd_privmsg(source, dest, buf);
|
||||
} else {
|
||||
send_cmd(source, "NOTICE %s :%s", dest, buf);
|
||||
}
|
||||
@@ -1074,11 +1074,6 @@ void bahamut_cmd_privmsg(const char *source, const char *dest, const char *buf)
|
||||
send_cmd(source, "PRIVMSG %s :%s", dest, buf);
|
||||
}
|
||||
|
||||
void bahamut_cmd_privmsg2(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "PRIVMSG %s :%s", dest, msg);
|
||||
}
|
||||
|
||||
void bahamut_cmd_serv_notice(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "NOTICE $%s :%s", dest, msg);
|
||||
@@ -1583,7 +1578,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_notice(bahamut_cmd_notice);
|
||||
pmodule_cmd_notice2(bahamut_cmd_notice2);
|
||||
pmodule_cmd_privmsg(bahamut_cmd_privmsg);
|
||||
pmodule_cmd_privmsg2(bahamut_cmd_privmsg2);
|
||||
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);
|
||||
|
||||
@@ -77,7 +77,6 @@ void bahamut_cmd_notice_ops(const char *source, const char *dest, const char *bu
|
||||
void bahamut_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void bahamut_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void bahamut_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void bahamut_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void bahamut_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void bahamut_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void bahamut_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
|
||||
@@ -461,7 +461,7 @@ void charybdis_cmd_notice(const char *source, const char *dest, const char *buf)
|
||||
}
|
||||
|
||||
if (NSDefFlags & NI_MSG) {
|
||||
charybdis_cmd_privmsg2(source, dest, buf);
|
||||
charybdis_cmd_privmsg(source, dest, buf);
|
||||
} else {
|
||||
ud = find_uid(source);
|
||||
u = finduser(dest);
|
||||
@@ -496,17 +496,6 @@ void charybdis_cmd_privmsg(const char *source, const char *dest, const char *buf
|
||||
(UseTS6 ? (ud2 ? ud2->uid : dest) : dest), buf);
|
||||
}
|
||||
|
||||
void charybdis_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 charybdis_cmd_serv_notice(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "NOTICE $$%s :%s", dest, msg);
|
||||
@@ -1880,7 +1869,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_notice(charybdis_cmd_notice);
|
||||
pmodule_cmd_notice2(charybdis_cmd_notice2);
|
||||
pmodule_cmd_privmsg(charybdis_cmd_privmsg);
|
||||
pmodule_cmd_privmsg2(charybdis_cmd_privmsg2);
|
||||
pmodule_cmd_serv_notice(charybdis_cmd_serv_notice);
|
||||
pmodule_cmd_serv_privmsg(charybdis_cmd_serv_privmsg);
|
||||
pmodule_cmd_bot_chan_mode(charybdis_cmd_bot_chan_mode);
|
||||
|
||||
@@ -65,7 +65,6 @@ void charybdis_cmd_notice_ops(const char *source, const char *dest, const char *
|
||||
void charybdis_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void charybdis_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void charybdis_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void charybdis_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void charybdis_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void charybdis_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void charybdis_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
|
||||
@@ -797,7 +797,7 @@ void inspircd_cmd_notice(const char *source, const char *dest, const char *buf)
|
||||
}
|
||||
|
||||
if (NSDefFlags & NI_MSG) {
|
||||
inspircd_cmd_privmsg2(source, dest, buf);
|
||||
inspircd_cmd_privmsg(source, dest, buf);
|
||||
} else {
|
||||
send_cmd(source, "NOTICE %s :%s", dest, buf);
|
||||
}
|
||||
@@ -817,11 +817,6 @@ void inspircd_cmd_privmsg(const char *source, const char *dest, const char *buf)
|
||||
send_cmd(source, "PRIVMSG %s :%s", dest, buf);
|
||||
}
|
||||
|
||||
void inspircd_cmd_privmsg2(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "PRIVMSG %s :%s", dest, msg);
|
||||
}
|
||||
|
||||
void inspircd_cmd_serv_notice(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "NOTICE $%s :%s", dest, msg);
|
||||
@@ -1818,7 +1813,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_notice(inspircd_cmd_notice);
|
||||
pmodule_cmd_notice2(inspircd_cmd_notice2);
|
||||
pmodule_cmd_privmsg(inspircd_cmd_privmsg);
|
||||
pmodule_cmd_privmsg2(inspircd_cmd_privmsg2);
|
||||
pmodule_cmd_serv_notice(inspircd_cmd_serv_notice);
|
||||
pmodule_cmd_serv_privmsg(inspircd_cmd_serv_privmsg);
|
||||
pmodule_cmd_bot_chan_mode(inspircd_cmd_bot_chan_mode);
|
||||
|
||||
@@ -70,7 +70,6 @@ void inspircd_cmd_notice_ops(const char *source, const char *dest, const char *b
|
||||
void inspircd_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void inspircd_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void inspircd_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
|
||||
+1
-13
@@ -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);
|
||||
|
||||
@@ -64,7 +64,6 @@ void ratbox_cmd_notice_ops(const char *source, const char *dest, const char *buf
|
||||
void ratbox_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void ratbox_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void ratbox_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void ratbox_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void ratbox_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void ratbox_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void ratbox_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
|
||||
@@ -673,7 +673,7 @@ void unreal_cmd_notice(const char *source, const char *dest, const char *buf)
|
||||
}
|
||||
|
||||
if (NSDefFlags & NI_MSG) {
|
||||
unreal_cmd_privmsg2(source, dest, buf);
|
||||
unreal_cmd_privmsg(source, dest, buf);
|
||||
} else {
|
||||
send_cmd(source, "%s %s :%s", send_token("NOTICE", "B"), dest,
|
||||
buf);
|
||||
@@ -694,11 +694,6 @@ void unreal_cmd_privmsg(const char *source, const char *dest, const char *buf)
|
||||
send_cmd(source, "%s %s :%s", send_token("PRIVMSG", "!"), dest, buf);
|
||||
}
|
||||
|
||||
void unreal_cmd_privmsg2(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "%s %s :%s", send_token("PRIVMSG", "!"), dest, msg);
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -2136,7 +2131,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_notice(unreal_cmd_notice);
|
||||
pmodule_cmd_notice2(unreal_cmd_notice2);
|
||||
pmodule_cmd_privmsg(unreal_cmd_privmsg);
|
||||
pmodule_cmd_privmsg2(unreal_cmd_privmsg2);
|
||||
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);
|
||||
|
||||
@@ -99,7 +99,6 @@ void unreal_cmd_notice_ops(const char *source, const char *dest, const char *buf
|
||||
void unreal_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void unreal_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void unreal_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
|
||||
Reference in New Issue
Block a user