summaryrefslogtreecommitdiff
path: root/src/protocol/ratbox.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
commit081a0311c8e4ecad02ca8b3232c58de7b898621f (patch)
treef98e48c1b17ef92064ec3f9533884485aeabaa79 /src/protocol/ratbox.c
parent2715c7e038b76284d5e7cfc1d794f7ed6b9e854a (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/ratbox.c')
-rw-r--r--src/protocol/ratbox.c30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 30f57d173..d1baa51d7 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -841,26 +841,17 @@ void ratbox_cmd_server(const char *servname, int hop, const char *descript)
send_cmd(NULL, "SERVER %s %d :%s", servname, hop, descript);
}
-void ratbox_cmd_connect(int servernum)
+void RatboxProto::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)
- ratbox_cmd_pass(RemotePassword);
- else if (servernum == 2)
- ratbox_cmd_pass(RemotePassword2);
- else if (servernum == 3)
- ratbox_cmd_pass(RemotePassword3);
-
- ratbox_cmd_capab();
- ratbox_cmd_server(ServerName, 1, ServerDesc);
- ratbox_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) ratbox_cmd_pass(RemotePassword);
+ else if (servernum == 2) ratbox_cmd_pass(RemotePassword2);
+ else if (servernum == 3) ratbox_cmd_pass(RemotePassword3);
+ ratbox_cmd_capab();
+ ratbox_cmd_server(ServerName, 1, ServerDesc);
+ ratbox_cmd_svinfo();
}
void RatboxProto::cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes)
@@ -1569,7 +1560,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(ratbox_cmd_242);
pmodule_cmd_243(ratbox_cmd_243);
pmodule_cmd_211(ratbox_cmd_211);
- pmodule_cmd_connect(ratbox_cmd_connect);
pmodule_cmd_svshold(ratbox_cmd_svshold);
pmodule_cmd_release_svshold(ratbox_cmd_release_svshold);
pmodule_cmd_unsgline(ratbox_cmd_unsgline);