X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fcore%2Fjournal.rb;h=c4f5f0f453a01fa7cf97c32bcbbef641aed71643;hb=c7c670947b9ec9129412e05fc7934531c9d132ba;hp=4bd4ec3c220b59196dd4faaed082cab1ac4a4800;hpb=39503c481daf957c741db89767295a444973986d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/core/journal.rb b/lib/rbot/core/journal.rb index 4bd4ec3c..c4f5f0f4 100644 --- a/lib/rbot/core/journal.rb +++ b/lib/rbot/core/journal.rb @@ -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