diff options
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r-- | src/protocol/unreal32.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 9ec7c83e8..eb3417f22 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -899,27 +899,15 @@ void UnrealIRCdProto::cmd_vhost_on(const char *nick, const char *vIdent, const c unreal_cmd_chghost(nick, vhost); } -void unreal_cmd_connect(int servernum) +void UnrealIRCdProto::cmd_connect() { - if (Numeric) { - me_server = - new_server(NULL, ServerName, ServerDesc, SERVER_ISME, Numeric); - } else { - me_server = - new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL); - } - - unreal_cmd_capab(); - if (servernum == 1) { - unreal_cmd_pass(RemotePassword); - } - if (servernum == 2) { - unreal_cmd_pass(RemotePassword2); - } - if (servernum == 3) { - unreal_cmd_pass(RemotePassword3); - } - unreal_cmd_server(ServerName, 1, ServerDesc); + if (Numeric) me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, Numeric); + else me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL); + unreal_cmd_capab(); + if (servernum == 1) unreal_cmd_pass(RemotePassword); + else if (servernum == 2) unreal_cmd_pass(RemotePassword2); + else if (servernum == 3) unreal_cmd_pass(RemotePassword3); + unreal_cmd_server(ServerName, 1, ServerDesc); } /* Events */ @@ -1952,7 +1940,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(unreal_cmd_242); pmodule_cmd_243(unreal_cmd_243); pmodule_cmd_211(unreal_cmd_211); - pmodule_cmd_connect(unreal_cmd_connect); pmodule_cmd_svshold(unreal_cmd_svshold); pmodule_cmd_release_svshold(unreal_cmd_release_svshold); pmodule_cmd_unsgline(unreal_cmd_unsgline); |