From 0881f54c6d6703c1a2f7f4e87992ad31a815a969 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 3 Feb 2020 09:47:21 -0800 Subject: [PATCH] HashObject: add get_data() function --- PBot/HashObject.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PBot/HashObject.pm b/PBot/HashObject.pm index 91003343..08f010b2 100644 --- a/PBot/HashObject.pm +++ b/PBot/HashObject.pm @@ -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;