diff options
author | Adam <Adam@anope.org> | 2016-10-15 16:25:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-15 16:25:57 -0400 |
commit | 1ba242179fee46583098f48421af39ce9a8985a1 (patch) | |
tree | a276cd7bd53e7270c86ab3744bd6a568a016501b /modules/database/old.cpp | |
parent | 696239e93391f3dfd6459857fb02a6006048093a (diff) |
Various improvements/bugfixes to extdb stuff
Diffstat (limited to 'modules/database/old.cpp')
-rw-r--r-- | modules/database/old.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/database/old.cpp b/modules/database/old.cpp index d63b2c4d8..61be22e9d 100644 --- a/modules/database/old.cpp +++ b/modules/database/old.cpp @@ -777,6 +777,10 @@ static void LoadBots() ServiceBot *bi = ServiceBot::Find(nick, true); if (!bi) bi = new ServiceBot(nick, user, host, real); + + if (bi->bi == nullptr) + bi->bi = Serialize::New<BotInfo *>(); + bi->bi->SetCreated(created); if (flags & OLD_BI_PRIVATE) |