1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 20:56:39 +02:00

Make db_old load entrymsg

This commit is contained in:
Adam
2014-03-01 21:20:32 -05:00
parent a0747516ce
commit fd109048dd
+16
View File
@@ -16,6 +16,7 @@
#include "modules/os_news.h"
#include "modules/suspend.h"
#include "modules/os_forbid.h"
#include "modules/cs_entrymsg.h"
#define READ(x) \
if (true) \
@@ -948,6 +949,21 @@ static void LoadChannels()
}
READ(read_string(buffer, f));
if (!buffer.empty())
{
EntryMessageList *eml = ci->Require<EntryMessageList>("entrymsg");
if (eml)
{
EntryMsg *e = eml->Create();
e->chan = ci->name;
e->creator = "Unknown";
e->message = buffer;
e->when = Anope::CurTime;
(*eml)->push_back(e);
}
}
READ(read_string(buffer, f));
ci->bi = BotInfo::Find(buffer);