3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-06 03:18:37 +02:00

MessageHistory: Add wrapper to get ancestor id directly from message account

This commit is contained in:
Pragmatic Software 2019-05-08 01:38:59 -07:00
parent c5c905e74f
commit f0c0f26138

View File

@ -365,6 +365,13 @@ sub find_message_accounts_by_mask {
return map {$_->[0]} @$accounts;
}
sub get_message_account_ancestor {
my $self = shift;
my $id = $self->get_message_account(@_);
$id = $self->get_ancestor_id($id);
return $id;
}
sub get_message_account {
my ($self, $nick, $user, $host, $orig_nick) = @_;