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

Replaced anope_SendSVSHold() with direct call to SendSVSHold() in IRCDProto class.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1356 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-02 21:49:01 +00:00
parent cd038ecb7a
commit c275bdf6f7
12 changed files with 10 additions and 16 deletions
-1
View File
@@ -1125,7 +1125,6 @@ E void anope_SendSGLine(const char *mask, const char *reason); /* SGL
E void anope_SendSZLine(const char *mask, const char *reason, const char *whom); /* SZLINE */
E void anope_cmd_svinfo(); /* SVINFO */
E void anope_cmd_svsadmin(const char *server, int set); /* SVSADMIN */
E void anope_SendSVSHOLD(const char *nick); /* SVSHOLD */
E void anope_SendSVSHOLDDel(const char *nick); /* SVSHOLD */
E void anope_cmd_svsinfo(); /* SVSINFO */
E void anope_SendSVSJoin(const char *source, const char *nick,const char *chan, const char *param); /* SVSJOIN */
+1 -1
View File
@@ -1445,7 +1445,7 @@ class IRCDProto {
}
virtual void SendVhost(const char *, const char *, const char *) { }
virtual void SendConnect() = 0;
virtual void SendSVSHOLD(const char *) { }
virtual void SendSVSHold(const char *) { }
virtual void SendSVSHOLDDel(const char *) { }
virtual void SendSGLineDel(const char *) { }
virtual void SendSZLineDel(const char *) { }
-5
View File
@@ -43,11 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av)
ircdproto->ProcessUsermodes(user, ac, av);
}
void anope_SendSVSHOLD(const char *nick)
{
ircdproto->SendSVSHOLD(nick);
}
void anope_SendSVSHOLDDel(const char *nick)
{
ircdproto->SendSVSHOLDDel(nick);
+1 -1
View File
@@ -954,7 +954,7 @@ void cancel_user(User * u)
if (na->status & NS_GUESTED) {
if (ircd->svshold) {
if (UseSVSHOLD) {
anope_SendSVSHOLD(na->nick);
ircdproto->SendSVSHold(na->nick);
} else {
if (ircd->svsnick) {
ircdproto->SendGuestNick(u->nick, NSEnforcerUser,
+1 -1
View File
@@ -460,7 +460,7 @@ void BahamutIRCdProto::SendModeInternal(const char *source, const char *dest, co
}
/* SVSHOLD - set */
void BahamutIRCdProto::SendSVSHOLD(const char *nick)
void BahamutIRCdProto::SendSVSHold(const char *nick)
{
send_cmd(ServerName, "SVSHOLD %s %d :%s", nick, NSReleaseTimeout, "Being held for registered user");
}
+1 -1
View File
@@ -76,7 +76,7 @@ class BahamutIRCdProto : public IRCDProto {
void SendSQLineDel(const char *);
void SendSQLine(const char *, const char *);
void SendConnect();
void SendSVSHOLD(const char *);
void SendSVSHold(const char *);
void SendSVSHOLDDel(const char *);
void SendSGLineDel(const char *);
void SendSZLineDel(const char *);
+1 -1
View File
@@ -1126,7 +1126,7 @@ int anope_event_capab(const char *source, int ac, const char **av)
}
/* SVSHOLD - set */
void CharybdisProto::SendSVSHOLD(const char *nick)
void CharybdisProto::SendSVSHold(const char *nick)
{
send_cmd(NULL, "ENCAP * NICKDELAY 300 %s", nick);
}
+1 -1
View File
@@ -69,7 +69,7 @@ class CharybdisProto : public IRCDTS6Proto {
void SendForceNickChange(const char *, const char *, time_t);
void SendVhost(const char *, const char *, const char *);
void SendConnect();
void SendSVSHOLD(const char *);
void SendSVSHold(const char *);
void SendSVSHOLDDel(const char *);
void SendSGLineDel(const char *);
void SendSGLine(const char *, const char *);
+1 -1
View File
@@ -1268,7 +1268,7 @@ int anope_event_capab(const char *source, int ac, const char **av)
}
/* SVSHOLD - set */
void InspIRCdProto::SendSVSHOLD(const char *nick)
void InspIRCdProto::SendSVSHold(const char *nick)
{
send_cmd(s_OperServ, "SVSHOLD %s %ds :%s", nick, NSReleaseTimeout, "Being held for registered user");
}
+1 -1
View File
@@ -71,7 +71,7 @@ class InspIRCdProto : public IRCDProto {
void SendSquit(const char *, const char *);
void SendVhost(const char *, const char *, const char *);
void SendConnect();
void SendSVSHOLD(const char *);
void SendSVSHold(const char *);
void SendSVSHOLDDel(const char *);
void SendSZLineDel(const char *);
void SendSZLine(const char *, const char *, const char *);
+1 -1
View File
@@ -1117,7 +1117,7 @@ int anope_event_whois(const char *source, int ac, const char **av)
}
/* SVSHOLD - set */
void UnrealIRCdProto::SendSVSHOLD(const char *nick)
void UnrealIRCdProto::SendSVSHold(const char *nick)
{
send_cmd(NULL, "%s + Q H %s %s %ld %ld :%s", send_token("TKL", "BD"), nick, ServerName, static_cast<long>(time(NULL) + NSReleaseTimeout),
static_cast<long>(time(NULL)), "Being held for registered user");
+1 -1
View File
@@ -102,7 +102,7 @@ class UnrealIRCdProto : public IRCDProto {
void SendChangeBotNick(const char *, const char *);
void SendVhost(const char *, const char *, const char *);
void SendConnect();
void SendSVSHOLD(const char *);
void SendSVSHold(const char *);
void SendSVSHOLDDel(const char *);
void SendSGLineDel(const char *);
void SendSZLineDel(const char *);