1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 10:23:13 +02:00

Replaced anope_SendNoticeChanops() with direct call to SendNoticeChanops() in IRCDProto class.

Also added SendNoticeChanopsInternal() function to IRCDProto class, now SendNoticeChanops() is a stub to handle varargs.


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1332 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-02 18:44:47 +00:00
parent 765f561952
commit c48429eb75
14 changed files with 23 additions and 25 deletions
+1 -1
View File
@@ -872,7 +872,7 @@ int anope_event_motd(const char *source, int ac, const char **av)
return MOD_CONT;
}
void BahamutIRCdProto::SendNoticeChanops(const char *source, const char *dest, const char *buf)
void BahamutIRCdProto::SendNoticeChanopsInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
send_cmd(NULL, "NOTICE @%s :%s", dest, buf);
+1 -1
View File
@@ -62,6 +62,7 @@ class BahamutIRCdProto : public IRCDProto {
void SendSVSKillInternal(const char *, const char *, const char *);
void SendModeInternal(const char *, const char *, const char *);
void SendKickInternal(const char *, const char *, const char *, const char *);
void SendNoticeChanopsInternal(const char *, const char *, const char *);
public:
void SendSVSNOOP(const char *, int);
void SendAkillDel(const char *, const char *);
@@ -70,7 +71,6 @@ class BahamutIRCdProto : public IRCDProto {
void SendSVSMode(User *, int, const char **);
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);
+1 -1
View File
@@ -1019,7 +1019,7 @@ void CharybdisProto::SendKickInternal(const char *source, const char *chan, cons
else send_cmd(UseTS6 ? (bi ? bi->uid.c_str() : source) : source, "KICK %s %s", chan, UseTS6 ? (u ? u->uid : user) : user);
}
void CharybdisProto::SendNoticeChanops(const char *source, const char *dest, const char *buf)
void CharybdisProto::SendNoticeChanopsInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
BotInfo *bi = findbot(source);
+1 -1
View File
@@ -50,13 +50,13 @@ class CharybdisProto : public IRCDTS6Proto {
void SendSVSKillInternal(const char *, const char *, const char *);
void SendModeInternal(const char *, const char *, const char *);
void SendKickInternal(const char *, const char *, const char *, const char *);
void SendNoticeChanopsInternal(const char *, const char *, const char *);
public:
void SendAkillDel(const char *, const char *);
void SendVhostDel(User *);
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
void SendSVSMode(User *, int, const char **);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void SendQuit(const char *, const char *);
void SendPong(const char *, const char *);
+1 -1
View File
@@ -739,7 +739,7 @@ void InspIRCdProto::SendKickInternal(const char *source, const char *chan, const
else send_cmd(source, "KICK %s %s :%s", chan, user, user);
}
void InspIRCdProto::SendNoticeChanops(const char *source, const char *dest, const char *buf)
void InspIRCdProto::SendNoticeChanopsInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
send_cmd(ServerName, "NOTICE @%s :%s", dest, buf);
+1 -1
View File
@@ -55,6 +55,7 @@ class InspIRCdProto : public IRCDProto {
void SendSVSKillInternal(const char *, const char *, const char *);
void SendModeInternal(const char *, const char *, const char *);
void SendKickInternal(const char *, const char *, const char *, const char *);
void SendNoticeChanopsInternal(const char *, const char *, const char *);
public:
void SendAkillDel(const char *, const char *);
void SendTopic(BotInfo *, const char *, const char *, const char *, time_t);
@@ -63,7 +64,6 @@ class InspIRCdProto : public IRCDProto {
void SendSVSMode(User *, int, const char **);
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);
+1 -1
View File
@@ -949,7 +949,7 @@ void RatboxProto::SendKickInternal(const char *source, const char *chan, const c
else send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "KICK %s %s", chan, UseTS6 ? (u ? u->uid : user) : user);
}
void RatboxProto::SendNoticeChanops(const char *source, const char *dest, const char *buf)
void RatboxProto::SendNoticeChanopsInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
send_cmd(NULL, "NOTICE @%s :%s", dest, buf);
+1 -1
View File
@@ -49,12 +49,12 @@ class RatboxProto : public IRCDTS6Proto {
void SendSVSKillInternal(const char *, const char *, const char *);
void SendModeInternal(const char *, const char *, const char *);
void SendKickInternal(const char *, const char *, const char *, const char *);
void SendNoticeChanopsInternal(const char *, const char *, const char *);
public:
void SendAkillDel(const char *, const char *);
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
void SendSVSMode(User *, int, const char **);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void SendQuit(const char *, const char *);
void SendPong(const char *, const char *);
+1 -1
View File
@@ -562,7 +562,7 @@ void UnrealIRCdProto::SendKickInternal(const char *source, const char *chan, con
else send_cmd(source, "%s %s %s", send_token("KICK", "H"), chan, user);
}
void UnrealIRCdProto::SendNoticeChanops(const char *source, const char *dest, const char *buf)
void UnrealIRCdProto::SendNoticeChanopsInternal(const char *source, const char *dest, const char *buf)
{
if (!buf) return;
send_cmd(source, "%s @%s :%s", send_token("NOTICE", "B"), dest, buf);
+1 -1
View File
@@ -84,6 +84,7 @@ class UnrealIRCdProto : public IRCDProto {
void SendSVSKillInternal(const char *, const char *, const char *);
void SendModeInternal(const char *, const char *, const char *);
void SendKickInternal(const char *, const char *, const char *, const char *);
void SendNoticeChanopsInternal(const char *, const char *, const char *);
public:
void SendSVSNOOP(const char *, int);
void SendAkillDel(const char *, const char *);
@@ -93,7 +94,6 @@ class UnrealIRCdProto : public IRCDProto {
void SendSVSMode(User *, int, const char **);
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);