mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 20:09:43 +01:00
random_nick now returns nick with preserved typographical case
This commit is contained in:
parent
edf2f0e5ee
commit
dfbefee904
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user