]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/journal.rb
journal: introduce ensure_payload_index
[user/henk/code/ruby/rbot.git] / lib / rbot / core / journal.rb
index 4bd4ec3c220b59196dd4faaed082cab1ac4a4800..c4f5f0f453a01fa7cf97c32bcbbef641aed71643 100644 (file)
@@ -7,6 +7,17 @@
 
 require 'rbot/journal'
 
+module ::Irc
+class Bot
+  # this should return the journal if the managing plugin has been loaded.
+  def journal
+    if @plugins['journal']
+      @plugins['journal'].broker
+    end
+  end
+end
+end
+
 class JournalModule < CoreBotModule
 
   attr_reader :broker