diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-25 16:12:24 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-25 16:12:24 +0000 |
commit | 8fc031fb84e7e266fbdf476b59d97f529c28dc36 (patch) | |
tree | 07ff1458e48da24b41b8800537409fe1f30d7ecd /src/protocol/inspircd11.c | |
parent | d8c4e705a2139682e6da65b864097df8d66f8432 (diff) |
Fix bug #1009, patch inspired by DukePyrolator, add a TS6 SID generator from DukePyrolator, as well as change SendServer() to take a Server struct and use the result of new_server() in the SendServer() call instead.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2206 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd11.c')
-rw-r--r-- | src/protocol/inspircd11.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 94ec42c24..17351937d 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -560,9 +560,9 @@ class InspIRCdProto : public IRCDProto /* SERVER services-dev.chatspike.net password 0 :Description here */ - void SendServer(const char *servname, int hop, const char *descript) + void SendServer(Server *server) { - send_cmd(ServerName, "SERVER %s %s %d :%s", servname, currentpass, hop, descript); + send_cmd(ServerName, "SERVER %s %s %d :%s", server->name, currentpass, server->hops, server->desc); } /* JOIN */ @@ -604,10 +604,10 @@ class InspIRCdProto : public IRCDProto void SendConnect() { inspircd_cmd_pass(uplink_server->password); - SendServer(ServerName, 0, ServerDesc); + me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL); + SendServer(me_server); send_cmd(NULL, "BURST"); send_cmd(ServerName, "VERSION :Anope-%s %s :%s - %s (%s) -- %s", version_number, ServerName, ircd->name, version_flags, EncModule, version_build); - me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL); } /* CHGIDENT */ |