1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

fix wrong server_time in $line->get_meta

This commit is contained in:
Ailin Nemui 2021-08-12 23:49:40 +02:00
parent 7d13cfba07
commit 9677b07488

View File

@ -123,6 +123,8 @@ PPCODE:
(void) hv_store(hv, key, strlen(key), new_pv(val), 0);
}
}
(void) hv_store(hv, "server_time", 11, newSViv(m->server_time), 0);
if (m->server_time) {
(void) hv_store(hv, "server_time", 11, newSViv(m->server_time), 0);
}
}
XPUSHs(sv_2mortal(newRV_noinc((SV *) hv)));