1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 06:06:38 +02:00

Remove IRCdProto::SendGuestNick(). It's identical to IRCdProto::SendClientIntroduction().

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1513 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-11-03 21:03:13 +00:00
parent c31f6498c3
commit e4dfff282d
5 changed files with 8 additions and 16 deletions
-1
View File
@@ -1214,7 +1214,6 @@ class IRCDProto {
SendSVSKillInternal(source, user, buf);
}
virtual void SendSVSMode(User *, int, const char **) = 0;
virtual void SendGuestNick(const char *, const char *, const char *, const char *, const char *) { }
virtual void SendMode(BotInfo *bi, const char *dest, const char *fmt, ...)
{
va_list args;
+2 -2
View File
@@ -846,7 +846,7 @@ void cancel_user(User * u)
ircdproto->SendSVSHold(na->nick);
} else {
if (ircd->svsnick) {
ircdproto->SendGuestNick(u->nick, NSEnforcerUser,
ircdproto->SendClientIntroduction(u->nick, NSEnforcerUser,
NSEnforcerHost,
"Services Enforcer", "+");
add_ns_timeout(na, TO_RELEASE, NSReleaseTimeout);
@@ -857,7 +857,7 @@ void cancel_user(User * u)
}
} else {
if (ircd->svsnick) {
ircdproto->SendGuestNick(u->nick, NSEnforcerUser,
ircdproto->SendClientIntroduction(u->nick, NSEnforcerUser,
NSEnforcerHost,
"Services Enforcer", "+");
add_ns_timeout(na, TO_RELEASE, NSReleaseTimeout);
-5
View File
@@ -701,11 +701,6 @@ class BahamutIRCdProto : public IRCDProto
SendSQLine(nick, "Reserved for services");
}
void SendGuestNick(const char *nick, const char *user, const char *host, const char *real, const char *modes)
{
send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s 0 0 :%s", nick, static_cast<long>(time(NULL)), modes, user, host, ServerName, real);
}
/* SVSMODE +d */
/* sent if svid is something weird */
void SendSVID(const char *nick, time_t ts)
+6 -2
View File
@@ -436,7 +436,11 @@ void inspircd_cmd_chghost(const char *nick, const char *vhost)
int anope_event_idle(const char *source, int ac, const char **av)
{
send_cmd(av[0], "IDLE %s %ld 0", source, (long int) time(NULL));
BotInfo *bi = findbot(s_OperServ);
if (!bi)
return MOD_CONT;
send_cmd(bi->uid, "IDLE %s %ld 0", source, (long int) time(NULL));
return MOD_CONT;
}
@@ -533,7 +537,7 @@ class InspIRCdProto : public IRCDProto
void SendNumericInternal(const char *source, int numeric, const char *dest, const char *buf)
{
send_cmd(source, "PUSH %s ::%s %03d %s %s", dest, source, numeric, dest, buf);
send_cmd(TS6SID, "PUSH %s ::%s %03d %s %s", dest, source, numeric, dest, buf);
}
void SendGuestNick(const char *nick, const char *user, const char *host, const char *real, const char *modes)
-6
View File
@@ -667,12 +667,6 @@ class UnrealIRCdProto : public IRCDProto
}
}
void SendGuestNick(const char *nick, const char *user, const char *host, const char *real, const char *modes)
{
send_cmd(NULL, "%s %s 1 %ld %s %s %s 0 %s %s%s :%s", send_token("NICK", "&"), nick, static_cast<long>(time(NULL)), user, host, ServerName, modes, host,
myIrcd->nickip ? " *" : " ", real);
}
void SendModeInternal(BotInfo *source, const char *dest, const char *buf)
{
if (!buf) return;