summaryrefslogtreecommitdiff
path: root/src/protocol/bahamut.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-25 16:12:24 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-25 16:12:24 +0000
commit8fc031fb84e7e266fbdf476b59d97f529c28dc36 (patch)
tree07ff1458e48da24b41b8800537409fe1f30d7ecd /src/protocol/bahamut.c
parentd8c4e705a2139682e6da65b864097df8d66f8432 (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/bahamut.c')
-rw-r--r--src/protocol/bahamut.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index 5e0b5a7a4..89fd91740 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -698,17 +698,17 @@ class BahamutIRCdProto : public IRCDProto
}
/* SERVER */
- void SendServer(const char *servname, int hop, const char *descript)
+ void SendServer(Server *server)
{
- send_cmd(NULL, "SERVER %s %d :%s", servname, hop, descript);
+ send_cmd(NULL, "SERVER %s %d :%s", server->name, server->hops, server->desc);
}
void SendConnect()
{
- me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL);
bahamut_cmd_pass(uplink_server->password);
bahamut_cmd_capab();
- SendServer(ServerName, 1, ServerDesc);
+ me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL);
+ SendServer(me_server);
bahamut_cmd_svinfo();
bahamut_cmd_burst();
}