File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 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 ) \
2324if (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)
You can’t perform that action at this time.
0 commit comments