diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/journal.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/rbot/journal.rb b/lib/rbot/journal.rb index 71b0c7ff..a25f3a9f 100644 --- a/lib/rbot/journal.rb +++ b/lib/rbot/journal.rb @@ -355,7 +355,7 @@ module Journal @subscriptions.delete subscription end - def find(query, limit=100, offset=0, &block) + def find(query=nil, limit=100, offset=0, &block) if block_given? begin res = @storage.find(query, limit, offset) @@ -366,6 +366,14 @@ module Journal end end + def count(query=nil) + @storage.count(query) + end + + def remove(query=nil) + @storage.remove(query) + end + end end # Journal |