]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/keywords.rb
keywords plugin: when exporting to factoids, split at ' or '
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / keywords.rb
index 424df8749d31bc9c290abf1f0d94bc5f893b5fa8..38a3ff43667b4741808f53c128626e5697f3146e 100644 (file)
@@ -33,7 +33,10 @@ class Keyword
     ar = Array.new
     @values.each { |val|
       debug "key #{key}, value #{val}"
-      ar << "%s %s %s" % [key, @type, val]
+      vals = val.split(" or ")
+      vals.each { |v|
+        ar << "%s %s %s" % [key, @type, v]
+      }
     }
     return ar
   end