diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-13 01:34:34 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-13 01:34:34 +0100 |
commit | 95cbfcc8c336678bd026f9b04b4e1981783a7bb5 (patch) | |
tree | 90c4313861f969fc6fd3df8eb38416e377546fd4 /data/rbot | |
parent | ef1d1eb46c3bd5f3d93c60e079f1e6a30acb4573 (diff) |
factoids plugin: actually learn new keywords when learning new factoids
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/factoids.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/factoids.rb b/data/rbot/plugins/factoids.rb index 128d6e42..c5f3a25c 100644 --- a/data/rbot/plugins/factoids.rb +++ b/data/rbot/plugins/factoids.rb @@ -270,7 +270,8 @@ class FactoidsPlugin < Plugin @factoids << factoid @changed = true m.reply _("okay, learned fact #%{num}: %{fact}" % { :num => @factoids.length, :fact => @factoids.last}) - parse_for_trigger(factoid) + trigs = parse_for_trigger(factoid) + @triggers |= trigs unless trigs.empty? end end |