1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 12:42:16 -05:00

ensure lasttalk gets updated

closes #247
This commit is contained in:
TingPing 2013-03-22 23:41:56 -03:00
parent aff9fb7945
commit cd1155b83c

View File

@ -155,6 +155,7 @@ void
inbound_privmsg (server *serv, char *from, char *ip, char *text, int id) inbound_privmsg (server *serv, char *from, char *ip, char *text, int id)
{ {
session *sess; session *sess;
struct User *user;
char idtext[64]; char idtext[64];
sess = find_dialog (serv, from); sess = find_dialog (serv, from);
@ -198,6 +199,10 @@ inbound_privmsg (server *serv, char *from, char *ip, char *text, int id)
return; return;
} }
user = userlist_find (sess, from);
if (user)
user->lasttalk = time (0);
if (sess->type == SESS_DIALOG) if (sess->type == SESS_DIALOG)
EMIT_SIGNAL (XP_TE_DPRIVMSG, sess, from, text, idtext, NULL, 0); EMIT_SIGNAL (XP_TE_DPRIVMSG, sess, from, text, idtext, NULL, 0);
else else