From 43475d2d90769a06df3b6b583683cfd474f6547e Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 4 Nov 2007 01:38:28 +0000 Subject: keywords plugin: when exporting to factoids, split at ' or ' --- data/rbot/plugins/keywords.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') 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 -- cgit v1.2.3