mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
MessageHistory: add gecos to aka
-sort
This commit is contained in:
parent
852c54d210
commit
aa778304d8
@ -143,6 +143,14 @@ sub cmd_list_also_known_as {
|
||||
return lc $_[0]->{$b}->{hostmask} cmp lc $_[0]->{$a}->{hostmask};
|
||||
}
|
||||
},
|
||||
|
||||
'gecos' => sub {
|
||||
if ($_[1] eq '+') {
|
||||
return lc $_[0]->{$a}->{gecos} cmp lc $_[0]->{$b}->{gecos};
|
||||
} else {
|
||||
return lc $_[0]->{$b}->{gecos} cmp lc $_[0]->{$a}->{gecos};
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
my $sort_direction = '+';
|
||||
|
Loading…
Reference in New Issue
Block a user