From 8fc031fb84e7e266fbdf476b59d97f529c28dc36 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Wed, 25 Mar 2009 16:12:24 +0000 Subject: 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 --- src/protocol/inspircd12.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/protocol/inspircd12.cpp') diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 7cd040823..8e1ddf989 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -564,9 +564,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(NULL, "SERVER %s %s %d %s :%s", servname, currentpass, hop, TS6SID, descript); + send_cmd(NULL, "SERVER %s %s %d %s :%s", server->name, currentpass, server->hops, server->suid, server->desc); } /* JOIN */ @@ -605,10 +605,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, TS6SID); + SendServer(me_server); send_cmd(NULL, "BURST"); send_cmd(TS6SID, "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, TS6SID); } /* CHGIDENT */ -- cgit