diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-04 01:38:28 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-04 01:38:28 +0000 |
commit | 43475d2d90769a06df3b6b583683cfd474f6547e (patch) | |
tree | 9cf4cb4e158e03e7a8d12dc75a72e7bf6c616072 | |
parent | 1f2a7ba69a4aa116924b94eb4af74e2301a787a8 (diff) |
keywords plugin: when exporting to factoids, split at ' or '
-rw-r--r-- | data/rbot/plugins/keywords.rb | 5 |
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 |