diff options
Diffstat (limited to 'src/core/db_plain.cpp')
-rw-r--r-- | src/core/db_plain.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp index 039f19674..c1c9cdae5 100644 --- a/src/core/db_plain.cpp +++ b/src/core/db_plain.cpp @@ -420,7 +420,9 @@ static void LoadNickAlias(const std::vector<std::string> ¶ms) static void LoadBotInfo(const std::vector<std::string> ¶ms) { - 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); |