From 3537b74877bb975bec7f24827d986ca97bc2c106 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 29 Nov 2016 01:43:11 -0800 Subject: [PATCH] Update last_seen hostmask field in WHO replies --- PBot/NickList.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PBot/NickList.pm b/PBot/NickList.pm index 0c24919a..68f47518 100644 --- a/PBot/NickList.pm +++ b/PBot/NickList.pm @@ -261,6 +261,7 @@ sub on_whospcrpl { $self->{pbot}->{logger}->log("WHO id: $id, hostmask: $hostmask, $nickserv, $gecos.\n"); my $account_id = $self->{pbot}->{messagehistory}->{database}->get_message_account($nick, $user, $host); + $self->{pbot}->{messagehistory}->{database}->update_hostmask_data($hostmask, { last_seen => scalar gettimeofday }); if ($nickserv ne '0') { $self->{pbot}->{messagehistory}->{database}->link_aliases($account_id, undef, $nickserv);