1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 21:46:39 +02:00

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
This commit is contained in:
Adam-
2010-02-25 07:12:17 +00:00
parent 235c4ae95c
commit 9edede4f3a
4 changed files with 3 additions and 20 deletions
+3 -1
View File
@@ -420,7 +420,9 @@ static void LoadNickAlias(const std::vector<std::string> &params)
static void LoadBotInfo(const std::vector<std::string> &params)
{
BotInfo *bi = new BotInfo(params[0].c_str());
BotInfo *bi = findbot(params[0]);
if (!bi)
bi = new BotInfo(params[0]);
bi->user = sstrdup(params[1].c_str());
bi->host = sstrdup(params[2].c_str());
bi->created = strtol(params[4].c_str(), NULL, 10);