mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
MessageHistory: Add wrapper to get ancestor id directly from message account
This commit is contained in:
parent
c5c905e74f
commit
f0c0f26138
@ -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) = @_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user