diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
commit | 081a0311c8e4ecad02ca8b3232c58de7b898621f (patch) | |
tree | f98e48c1b17ef92064ec3f9533884485aeabaa79 /src/protocol/charybdis.c | |
parent | 2715c7e038b76284d5e7cfc1d794f7ed6b9e854a (diff) |
Added cmd_connect() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1249 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/charybdis.c')
-rw-r--r-- | src/protocol/charybdis.c | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 1f56cad85..7c9ef39a0 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -906,26 +906,17 @@ void charybdis_cmd_server(const char *servname, int hop, const char *descript) send_cmd(NULL, "SERVER %s %d :%s", servname, hop, descript); } -void charybdis_cmd_connect(int servernum) +void CharybdisProto::cmd_connect() { - /* Make myself known to myself in the serverlist */ - if (UseTS6) { - me_server = - new_server(NULL, ServerName, ServerDesc, SERVER_ISME, TS6SID); - } else { - me_server = - new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL); - } - if (servernum == 1) - charybdis_cmd_pass(RemotePassword); - else if (servernum == 2) - charybdis_cmd_pass(RemotePassword2); - else if (servernum == 3) - charybdis_cmd_pass(RemotePassword3); - - charybdis_cmd_capab(); - charybdis_cmd_server(ServerName, 1, ServerDesc); - charybdis_cmd_svinfo(); + /* Make myself known to myself in the serverlist */ + if (UseTS6) me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, TS6SID); + else me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL); + if (servernum == 1) charybdis_cmd_pass(RemotePassword); + else if (servernum == 2) charybdis_cmd_pass(RemotePassword2); + else if (servernum == 3) charybdis_cmd_pass(RemotePassword3); + charybdis_cmd_capab(); + charybdis_cmd_server(ServerName, 1, ServerDesc); + charybdis_cmd_svinfo(); } void CharybdisProto::cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes) @@ -1679,7 +1670,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(charybdis_cmd_242); pmodule_cmd_243(charybdis_cmd_243); pmodule_cmd_211(charybdis_cmd_211); - pmodule_cmd_connect(charybdis_cmd_connect); pmodule_cmd_svshold(charybdis_cmd_svshold); pmodule_cmd_release_svshold(charybdis_cmd_release_svshold); pmodule_cmd_unsgline(charybdis_cmd_unsgline); |