summaryrefslogtreecommitdiff
path: root/src/protocol/bahamut.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/bahamut.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/bahamut.c')
-rw-r--r--src/protocol/bahamut.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index d72935bf8..916275e16 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -839,22 +839,16 @@ void bahamut_cmd_capab()
"CAPAB SSJOIN NOQUIT BURST UNCONNECT NICKIP TSMODE TS3");
}
-void bahamut_cmd_connect(int servernum)
+void BahamutIRCdProto::cmd_connect()
{
- me_server =
- new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL);
-
- if (servernum == 1) {
- bahamut_cmd_pass(RemotePassword);
- } else if (servernum == 2) {
- bahamut_cmd_pass(RemotePassword2);
- } else if (servernum == 3) {
- bahamut_cmd_pass(RemotePassword3);
- }
- bahamut_cmd_capab();
- bahamut_cmd_server(ServerName, 1, ServerDesc);
- bahamut_cmd_svinfo();
- bahamut_cmd_burst();
+ me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME, NULL);
+ if (servernum == 1) bahamut_cmd_pass(RemotePassword);
+ else if (servernum == 2) bahamut_cmd_pass(RemotePassword2);
+ else if (servernum == 3) bahamut_cmd_pass(RemotePassword3);
+ bahamut_cmd_capab();
+ bahamut_cmd_server(ServerName, 1, ServerDesc);
+ bahamut_cmd_svinfo();
+ bahamut_cmd_burst();
}
@@ -1403,7 +1397,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(bahamut_cmd_242);
pmodule_cmd_243(bahamut_cmd_243);
pmodule_cmd_211(bahamut_cmd_211);
- pmodule_cmd_connect(bahamut_cmd_connect);
pmodule_cmd_svshold(bahamut_cmd_svshold);
pmodule_cmd_release_svshold(bahamut_cmd_release_svshold);
pmodule_cmd_unsgline(bahamut_cmd_unsgline);