mirror of
https://github.com/anope/anope.git
synced 2026-07-01 12:46:39 +02:00
Added cmd_notice() function to IRCDProtoNew class. (Replaces cmd_notice2)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1229 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -1027,11 +1027,6 @@ void BahamutIRCdProto::cmd_notice_ops(const char *source, const char *dest, cons
|
||||
send_cmd(NULL, "NOTICE @%s :%s", dest, buf);
|
||||
}
|
||||
|
||||
void bahamut_cmd_notice2(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "NOTICE %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);
|
||||
@@ -1502,7 +1497,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_372_error(bahamut_cmd_372_error);
|
||||
pmodule_cmd_375(bahamut_cmd_375);
|
||||
pmodule_cmd_376(bahamut_cmd_376);
|
||||
pmodule_cmd_notice2(bahamut_cmd_notice2);
|
||||
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);
|
||||
|
||||
@@ -63,7 +63,6 @@ void bahamut_cmd_372(const char *source, const char *msg);
|
||||
void bahamut_cmd_372_error(const char *source);
|
||||
void bahamut_cmd_375(const char *source);
|
||||
void bahamut_cmd_376(const char *source);
|
||||
void bahamut_cmd_notice2(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);
|
||||
|
||||
@@ -455,22 +455,14 @@ void CharybdisProto::cmd_message(const char *source, const char *dest, const cha
|
||||
{
|
||||
if (!buf) return;
|
||||
if (NSDefFlags & NI_MSG) cmd_privmsg(source, dest, buf);
|
||||
else {
|
||||
Uid *ud = find_uid(source);
|
||||
User *u = finduser(dest);
|
||||
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "NOTICE %s :%s", UseTS6 ? (u ? u->uid : dest) : dest, buf);
|
||||
}
|
||||
else cmd_notice(source, dest, buf);
|
||||
}
|
||||
|
||||
void charybdis_cmd_notice2(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
Uid *ud;
|
||||
User *u;
|
||||
|
||||
ud = find_uid(source);
|
||||
u = finduser(dest);
|
||||
send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "NOTICE %s :%s",
|
||||
(UseTS6 ? (u ? u->uid : dest) : dest), msg);
|
||||
Uid *ud = find_uid(source);
|
||||
User *u = finduser(dest);
|
||||
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "NOTICE %s :%s", UseTS6 ? (u ? u->uid : dest) : dest, msg);
|
||||
}
|
||||
|
||||
void CharybdisProto::cmd_privmsg(const char *source, const char *dest, const char *buf)
|
||||
@@ -1759,7 +1751,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_372_error(charybdis_cmd_372_error);
|
||||
pmodule_cmd_375(charybdis_cmd_375);
|
||||
pmodule_cmd_376(charybdis_cmd_376);
|
||||
pmodule_cmd_notice2(charybdis_cmd_notice2);
|
||||
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);
|
||||
|
||||
@@ -51,7 +51,6 @@ void charybdis_cmd_372(const char *source, const char *msg);
|
||||
void charybdis_cmd_372_error(const char *source);
|
||||
void charybdis_cmd_375(const char *source);
|
||||
void charybdis_cmd_376(const char *source);
|
||||
void charybdis_cmd_notice2(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);
|
||||
@@ -114,5 +113,6 @@ class CharybdisProto : public IRCDProtoNew {
|
||||
void cmd_kick(const char *, const char *, const char *, const char *);
|
||||
void cmd_notice_ops(const char *, const char *, const char *);
|
||||
void cmd_message(const char *, const char *, const char *);
|
||||
void cmd_notice(const char *, const char *, const char *);
|
||||
void cmd_privmsg(const char *, const char *, const char *);
|
||||
} ircd_proto;
|
||||
|
||||
@@ -780,11 +780,6 @@ void InspIRCdProto::cmd_notice_ops(const char *source, const char *dest, const c
|
||||
}
|
||||
|
||||
|
||||
void inspircd_cmd_notice2(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "NOTICE %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);
|
||||
@@ -1750,7 +1745,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_372_error(inspircd_cmd_372_error);
|
||||
pmodule_cmd_375(inspircd_cmd_375);
|
||||
pmodule_cmd_376(inspircd_cmd_376);
|
||||
pmodule_cmd_notice2(inspircd_cmd_notice2);
|
||||
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);
|
||||
|
||||
@@ -56,7 +56,6 @@ void inspircd_cmd_372(const char *source, const char *msg);
|
||||
void inspircd_cmd_372_error(const char *source);
|
||||
void inspircd_cmd_375(const char *source);
|
||||
void inspircd_cmd_376(const char *source);
|
||||
void inspircd_cmd_notice2(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);
|
||||
|
||||
+5
-14
@@ -444,22 +444,14 @@ void RatboxProto::cmd_message(const char *source, const char *dest, const char *
|
||||
{
|
||||
if (!buf) return;
|
||||
if (NSDefFlags & NI_MSG) cmd_privmsg(source, dest, buf);
|
||||
else {
|
||||
Uid *ud = find_uid(source);
|
||||
User *u = finduser(dest);
|
||||
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "NOTICE %s :%s", UseTS6 ? (u ? u->uid : dest) : dest, buf);
|
||||
}
|
||||
else cmd_notice(source, dest, buf);
|
||||
}
|
||||
|
||||
void ratbox_cmd_notice2(const char *source, const char *dest, const char *msg)
|
||||
void RatboxProto::cmd_notice(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
Uid *ud;
|
||||
User *u;
|
||||
|
||||
ud = find_uid(source);
|
||||
u = finduser(dest);
|
||||
send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "NOTICE %s :%s",
|
||||
(UseTS6 ? (u ? u->uid : dest) : dest), msg);
|
||||
Uid *ud = find_uid(source);
|
||||
User *u = finduser(dest);
|
||||
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "NOTICE %s :%s", UseTS6 ? (u ? u->uid : dest) : dest, msg);
|
||||
}
|
||||
|
||||
void RatboxProto::cmd_privmsg(const char *source, const char *dest, const char *buf)
|
||||
@@ -1653,7 +1645,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_372_error(ratbox_cmd_372_error);
|
||||
pmodule_cmd_375(ratbox_cmd_375);
|
||||
pmodule_cmd_376(ratbox_cmd_376);
|
||||
pmodule_cmd_notice2(ratbox_cmd_notice2);
|
||||
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);
|
||||
|
||||
@@ -50,7 +50,6 @@ void ratbox_cmd_372(const char *source, const char *msg);
|
||||
void ratbox_cmd_372_error(const char *source);
|
||||
void ratbox_cmd_375(const char *source);
|
||||
void ratbox_cmd_376(const char *source);
|
||||
void ratbox_cmd_notice2(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);
|
||||
@@ -112,5 +111,6 @@ class RatboxProto : public IRCDProtoNew {
|
||||
void cmd_kick(const char *, const char *, const char *, const char *);
|
||||
void cmd_notice_ops(const char *, const char *, const char *);
|
||||
void cmd_message(const char *, const char *, const char *);
|
||||
void cmd_notice(const char *, const char *, const char *);
|
||||
void cmd_privmsg(const char *, const char *, const char *);
|
||||
} ircd_proto;
|
||||
|
||||
@@ -629,11 +629,6 @@ void UnrealIRCdProto::cmd_notice_ops(const char *source, const char *dest, const
|
||||
}
|
||||
|
||||
|
||||
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_serv_notice(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "%s $%s :%s", send_token("NOTICE", "B"), dest, msg);
|
||||
@@ -2050,7 +2045,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_372_error(unreal_cmd_372_error);
|
||||
pmodule_cmd_375(unreal_cmd_375);
|
||||
pmodule_cmd_376(unreal_cmd_376);
|
||||
pmodule_cmd_notice2(unreal_cmd_notice2);
|
||||
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);
|
||||
|
||||
@@ -85,7 +85,6 @@ void unreal_cmd_372(const char *source, const char *msg);
|
||||
void unreal_cmd_372_error(const char *source);
|
||||
void unreal_cmd_375(const char *source);
|
||||
void unreal_cmd_376(const char *source);
|
||||
void unreal_cmd_notice2(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