summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-03 21:03:13 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-03 21:03:13 +0000
commite4dfff282dd4b95ee5ade2914b7be1ded73d5eb9 (patch)
treec3515f3bf8c57fa85ae42f4e2c7b3d66602a746c /src
parentc31f6498c38bc17832e399d49cbb86a145b9d06d (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/nickserv.c4
-rw-r--r--src/protocol/bahamut.c5
-rw-r--r--src/protocol/inspircd12.cpp8
-rw-r--r--src/protocol/unreal32.c6
4 files changed, 8 insertions, 15 deletions
diff --git a/src/nickserv.c b/src/nickserv.c
index f4f1dfae3..deefa6112 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -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);
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index a2e6ec763..ef831be88 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -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)
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp
index 0e0d69e48..4816ab84a 100644
--- a/src/protocol/inspircd12.cpp
+++ b/src/protocol/inspircd12.cpp
@@ -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)
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 7ade811c8..6a99e4b33 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -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;