diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 21:12:10 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 21:12:10 +0000 |
commit | 5373ece5559e97b5ac770934f02b901817c0d4a0 (patch) | |
tree | e32119609530df1a10863468cd6dee37c2ed4895 /src/protocol/inspircd12.cpp | |
parent | e4dfff282dd4b95ee5ade2914b7be1ded73d5eb9 (diff) |
Add UID parameter to SendClientIntroduction, and make it get a UID. This is a bit... ugly... but hey, if it works.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1514 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd12.cpp')
-rw-r--r-- | src/protocol/inspircd12.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 4816ab84a..a4f78791c 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -542,7 +542,7 @@ class InspIRCdProto : public IRCDProto void SendGuestNick(const char *nick, const char *user, const char *host, const char *real, const char *modes) { - send_cmd(ServerName, "NICK %ld %s %s %s %s +%s 0.0.0.0 :%s", static_cast<long>(time(NULL)), nick, host, host, user, modes, real); + send_cmd(TS6SID, "UID %ld %s %s %s %s +%s 0.0.0.0 :%s", static_cast<long>(time(NULL)), nick, host, host, user, modes, real); } void SendModeInternal(BotInfo *source, const char *dest, const char *buf) @@ -551,9 +551,9 @@ class InspIRCdProto : public IRCDProto send_cmd(source ? source->uid : TS6SID, "FMODE %s %u %s", dest, static_cast<unsigned>(c ? c->creation_time : time(NULL)), buf); } - void SendClientIntroduction(const char *nick, const char *user, const char *host, const char *real, const char *modes) + void SendClientIntroduction(const char *nick, const char *user, const char *host, const char *real, const char *modes, const char *uid) { - send_cmd(ServerName, "NICK %ld %s %s %s %s +%s 0.0.0.0 :%s", static_cast<long>(time(NULL)), nick, host, host, user, modes, real); + send_cmd(ServerName, "UID %ld %s %s %s %s +%s 0.0.0.0 :%s", static_cast<long>(time(NULL)), nick, host, host, user, modes, real); send_cmd(nick, "OPERTYPE Service"); } |