3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

random_nick now returns nick with preserved typographical case

This commit is contained in:
Pragmatic Software 2015-06-10 02:26:14 -07:00
parent edf2f0e5ee
commit dfbefee904

View File

@ -100,7 +100,8 @@ sub random_nick {
if (exists $self->{nicklist}->{$channel}) {
my @nicks = keys $self->{nicklist}->{$channel};
return $nicks[rand @nicks];
my $nick = $nicks[rand @nicks];
return $self->{nicklist}->{$channel}->{$nick}->{nick};
} else {
return undef;
}