Skip to content

Commit 883367c

Browse files
committed
Fix importing some data from 1.8.
1 parent 7f2c281 commit 883367c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

modules/database/db_old.cpp

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "modules/suspend.h"
1919
#include "modules/os_forbid.h"
2020
#include "modules/cs_entrymsg.h"
21+
#include "modules/set_misc.h"
2122

2223
#define READ(x) \
2324
if (true) \
@@ -473,10 +474,24 @@ static void LoadNicks()
473474

474475
uint32_t u32;
475476
READ(read_uint32(&u32, f));
476-
//nc->icq = u32;
477+
ExtensibleRef<MiscData> icqref("ns_set_misc:ICQ");
478+
if (icqref && u32 > 0)
479+
{
480+
MiscData *data = icqref->Set(nc);
481+
data->object = nc->display;
482+
data->name = "ns_set_misc:ICQ";
483+
data->data = stringify(u32);
484+
}
477485

478486
READ(read_string(buffer, f));
479-
//nc->url = buffer;
487+
ExtensibleRef<MiscData> urlref("ns_set_misc:URL");
488+
if (urlref && !buffer.empty())
489+
{
490+
MiscData *data = icqref->Set(nc);
491+
data->object = nc->display;
492+
data->name = "ns_set_misc:URL";
493+
data->data = buffer;
494+
}
480495

481496
READ(read_uint32(&u32, f));
482497
if (u32 & OLD_NI_KILLPROTECT)

0 commit comments

Comments
 (0)