diff options
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index dea79b952..acde49ac0 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -585,18 +585,18 @@ class RatboxProto : public IRCDTS6Proto } /* SERVER name hop descript */ - 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() { - /* Make myself known to myself in the serverlist */ - me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, TS6SID); ratbox_cmd_pass(uplink_server->password); ratbox_cmd_capab(); - SendServer(ServerName, 1, ServerDesc); + /* Make myself known to myself in the serverlist */ + me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, TS6SID); + SendServer(me_server); ratbox_cmd_svinfo(); } |