diff options
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 |