summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-04 01:38:28 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-04 01:38:28 +0000
commit43475d2d90769a06df3b6b583683cfd474f6547e (patch)
tree9cf4cb4e158e03e7a8d12dc75a72e7bf6c616072
parent1f2a7ba69a4aa116924b94eb4af74e2301a787a8 (diff)
keywords plugin: when exporting to factoids, split at ' or '
-rw-r--r--data/rbot/plugins/keywords.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb
index 424df874..38a3ff43 100644
--- a/data/rbot/plugins/keywords.rb
+++ b/data/rbot/plugins/keywords.rb
@@ -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