diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 21:03:13 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 21:03:13 +0000 |
commit | e4dfff282dd4b95ee5ade2914b7be1ded73d5eb9 (patch) | |
tree | c3515f3bf8c57fa85ae42f4e2c7b3d66602a746c /src/protocol/inspircd12.cpp | |
parent | c31f6498c38bc17832e399d49cbb86a145b9d06d (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/protocol/inspircd12.cpp')
-rw-r--r-- | src/protocol/inspircd12.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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) |