summaryrefslogtreecommitdiff
path: root/src/core/ss_main.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-25 07:12:17 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-25 07:12:17 +0000
commit9edede4f3a594bb4dd3f028a8dc11d4a177d90fd (patch)
treecc5671ecf72d549723d633af530b331e4c9046e9 /src/core/ss_main.c
parent235c4ae95c1cf467ec47514c2226df675494c12c (diff)
Removed OnBotPreLoad event, this is a much better way to prevent multiple of the same bots being loaded
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2796 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ss_main.c')
-rw-r--r--src/core/ss_main.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/core/ss_main.c b/src/core/ss_main.c
index 8ff8080b9..6405c8858 100644
--- a/src/core/ss_main.c
+++ b/src/core/ss_main.c
@@ -42,7 +42,6 @@ class SSMain : public Module
this->SetPermanent(true);
this->AddCommand(cmdTable, new CommandSSHelp());
- ModuleManager::Attach(I_OnBotPreLoad, this);
statserv = findbot("StatServ");
if (!statserv)
@@ -72,16 +71,6 @@ class SSMain : public Module
delete statserv;
}
}
-
- void OnBotPreLoad(BotInfo *bi)
- {
- if (bi->nick == "StatServ")
- {
- delete statserv;
- statserv = bi;
- statserv->cmdTable = cmdTable;
- }
- }
};
MODULE_INIT(SSMain)