mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
HashObject: add get_data() function
This commit is contained in:
parent
19386a7a51
commit
0881f54c6d
@ -181,6 +181,11 @@ sub exists {
|
||||
return exists $self->{hash}->{lc $index};
|
||||
}
|
||||
|
||||
sub get_data {
|
||||
my ($self, $index) = @_;
|
||||
return $self->{hash}->{lc $index};
|
||||
}
|
||||
|
||||
sub add {
|
||||
my ($self, $index, $data, $dont_save) = @_;
|
||||
my $lc_index = lc $index;
|
||||
|
Loading…
Reference in New Issue
Block a user