3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

MessageHistory: add gecos to aka -sort

This commit is contained in:
Pragmatic Software 2020-05-18 01:00:18 -07:00
parent 852c54d210
commit aa778304d8

View File

@ -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 = '+';