mirror of
https://github.com/anope/anope.git
synced 2026-07-07 10:03:13 +02:00
Added cmd_serv_privmsg() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1233 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -610,7 +610,6 @@ E void pmodule_cmd_372(void (*func) (const char *source, const char *msg));
|
||||
E void pmodule_cmd_372_error(void (*func) (const char *source));
|
||||
E void pmodule_cmd_375(void (*func) (const char *source));
|
||||
E void pmodule_cmd_376(void (*func) (const char *source));
|
||||
E void pmodule_cmd_serv_privmsg(void (*func) (const char *source, const char *dest, const char *msg));
|
||||
E void pmodule_cmd_bot_chan_mode(void (*func) (const char *nick, const char *chan));
|
||||
E void pmodule_cmd_351(void (*func) (const char *source));
|
||||
E void pmodule_cmd_quit(void (*func) (const char *source, const char *buf));
|
||||
|
||||
+4
-1
@@ -1060,7 +1060,6 @@ typedef struct ircd_proto_ {
|
||||
void (*ircd_cmd_372_error)(const char *source);
|
||||
void (*ircd_cmd_375)(const char *source);
|
||||
void (*ircd_cmd_376)(const char *source);
|
||||
void (*ircd_cmd_serv_privmsg)(const char *source, const char *dest, const char *msg);
|
||||
void (*ircd_cmd_bot_chan_mode)(const char *nick, const char *chan);
|
||||
void (*ircd_cmd_351)(const char *source);
|
||||
void (*ircd_cmd_quit)(const char *source, const char *buf);
|
||||
@@ -1323,6 +1322,10 @@ class IRCDProtoNew {
|
||||
{
|
||||
send_cmd(source, "NOTICE %s%s :%s", ircd->globaltldprefix, dest, msg);
|
||||
}
|
||||
virtual void cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "PRIVMSG %s%s :%s", ircd->globaltldprefix, dest, msg);
|
||||
}
|
||||
};
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
+1
-8
@@ -50,7 +50,6 @@ void initIrcdProto()
|
||||
ircdproto.ircd_cmd_372_error = NULL;
|
||||
ircdproto.ircd_cmd_375 = NULL;
|
||||
ircdproto.ircd_cmd_376 = NULL;
|
||||
ircdproto.ircd_cmd_serv_privmsg = NULL;
|
||||
ircdproto.ircd_cmd_bot_chan_mode = NULL;
|
||||
ircdproto.ircd_cmd_351 = NULL;
|
||||
ircdproto.ircd_cmd_quit = NULL;
|
||||
@@ -282,7 +281,7 @@ void anope_cmd_serv_notice(const char *source, const char *dest, const char *msg
|
||||
|
||||
void anope_cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
ircdproto.ircd_cmd_serv_privmsg(source, dest, msg);
|
||||
ircdprotonew->cmd_serv_privmsg(source, dest, msg);
|
||||
}
|
||||
|
||||
void anope_cmd_bot_chan_mode(const char *nick, const char *chan)
|
||||
@@ -660,12 +659,6 @@ void pmodule_cmd_376(void (*func) (const char *source))
|
||||
ircdproto.ircd_cmd_376 = func;
|
||||
}
|
||||
|
||||
void pmodule_cmd_serv_privmsg(void (*func)
|
||||
(const char *source, const char *dest, const char *msg))
|
||||
{
|
||||
ircdproto.ircd_cmd_serv_privmsg = func;
|
||||
}
|
||||
|
||||
void pmodule_cmd_bot_chan_mode(void (*func) (const char *nick, const char *chan))
|
||||
{
|
||||
ircdproto.ircd_cmd_bot_chan_mode = func;
|
||||
|
||||
@@ -1028,11 +1028,6 @@ void BahamutIRCdProto::cmd_notice_ops(const char *source, const char *dest, cons
|
||||
send_cmd(NULL, "NOTICE @%s :%s", dest, buf);
|
||||
}
|
||||
|
||||
void bahamut_cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "PRIVMSG $%s :%s", dest, msg);
|
||||
}
|
||||
|
||||
/* GLOBOPS */
|
||||
void bahamut_cmd_global(const char *source, const char *buf)
|
||||
{
|
||||
@@ -1493,7 +1488,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_serv_privmsg(bahamut_cmd_serv_privmsg);
|
||||
pmodule_cmd_bot_chan_mode(bahamut_cmd_bot_chan_mode);
|
||||
pmodule_cmd_351(bahamut_cmd_351);
|
||||
pmodule_cmd_quit(bahamut_cmd_quit);
|
||||
|
||||
@@ -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_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void bahamut_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void bahamut_cmd_351(const char *source);
|
||||
void bahamut_cmd_quit(const char *source, const char *buf);
|
||||
|
||||
@@ -473,12 +473,6 @@ void CharybdisProto::cmd_privmsg(const char *source, const char *dest, const cha
|
||||
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "PRIVMSG %s :%s", UseTS6 ? (ud2 ? ud2->uid : dest) : dest, buf);
|
||||
}
|
||||
|
||||
void charybdis_cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "PRIVMSG $$%s :%s", dest, msg);
|
||||
}
|
||||
|
||||
|
||||
void charybdis_cmd_global(const char *source, const char *buf)
|
||||
{
|
||||
Uid *u;
|
||||
@@ -1747,7 +1741,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_serv_privmsg(charybdis_cmd_serv_privmsg);
|
||||
pmodule_cmd_bot_chan_mode(charybdis_cmd_bot_chan_mode);
|
||||
pmodule_cmd_351(charybdis_cmd_351);
|
||||
pmodule_cmd_quit(charybdis_cmd_quit);
|
||||
|
||||
@@ -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_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void charybdis_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void charybdis_cmd_351(const char *source);
|
||||
void charybdis_cmd_quit(const char *source, const char *buf);
|
||||
|
||||
@@ -780,13 +780,6 @@ void InspIRCdProto::cmd_notice_ops(const char *source, const char *dest, const c
|
||||
send_cmd(ServerName, "NOTICE @%s :%s", dest, buf);
|
||||
}
|
||||
|
||||
|
||||
void inspircd_cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "PRIVMSG $%s :%s", dest, msg);
|
||||
}
|
||||
|
||||
|
||||
void inspircd_cmd_bot_chan_mode(const char *nick, const char *chan)
|
||||
{
|
||||
anope_cmd_mode(nick, chan, "%s %s %s", ircd->botchanumode, nick, nick);
|
||||
@@ -1741,7 +1734,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_serv_privmsg(inspircd_cmd_serv_privmsg);
|
||||
pmodule_cmd_bot_chan_mode(inspircd_cmd_bot_chan_mode);
|
||||
pmodule_cmd_351(inspircd_cmd_351);
|
||||
pmodule_cmd_quit(inspircd_cmd_quit);
|
||||
|
||||
@@ -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_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void inspircd_cmd_351(const char *source);
|
||||
void inspircd_cmd_quit(const char *source, const char *buf);
|
||||
|
||||
@@ -462,12 +462,6 @@ void RatboxProto::cmd_privmsg(const char *source, const char *dest, const char *
|
||||
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "PRIVMSG %s :%s", UseTS6 ? (ud2 ? ud2->uid : dest) : dest, buf);
|
||||
}
|
||||
|
||||
void ratbox_cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "PRIVMSG $$%s :%s", dest, msg);
|
||||
}
|
||||
|
||||
|
||||
void ratbox_cmd_global(const char *source, const char *buf)
|
||||
{
|
||||
Uid *u;
|
||||
@@ -1641,7 +1635,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_serv_privmsg(ratbox_cmd_serv_privmsg);
|
||||
pmodule_cmd_bot_chan_mode(ratbox_cmd_bot_chan_mode);
|
||||
pmodule_cmd_351(ratbox_cmd_351);
|
||||
pmodule_cmd_quit(ratbox_cmd_quit);
|
||||
|
||||
@@ -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_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void ratbox_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void ratbox_cmd_351(const char *source);
|
||||
void ratbox_cmd_quit(const char *source, const char *buf);
|
||||
|
||||
@@ -630,11 +630,6 @@ void UnrealIRCdProto::cmd_notice_ops(const char *source, const char *dest, const
|
||||
}
|
||||
|
||||
|
||||
void unreal_cmd_serv_privmsg(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "%s $%s :%s", send_token("PRIVMSG", "!"), dest, msg);
|
||||
}
|
||||
|
||||
void unreal_cmd_bot_chan_mode(const char *nick, const char *chan)
|
||||
{
|
||||
anope_cmd_mode(nick, chan, "%s %s %s", myIrcd->botchanumode, nick,
|
||||
@@ -2041,7 +2036,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_serv_privmsg(unreal_cmd_serv_privmsg);
|
||||
pmodule_cmd_bot_chan_mode(unreal_cmd_bot_chan_mode);
|
||||
pmodule_cmd_351(unreal_cmd_351);
|
||||
pmodule_cmd_quit(unreal_cmd_quit);
|
||||
|
||||
@@ -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_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void unreal_cmd_351(const char *source);
|
||||
void unreal_cmd_quit(const char *source, const char *buf);
|
||||
|
||||
Reference in New Issue
Block a user