summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-25 23:34:51 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-25 23:34:51 +0000
commit088de492788cba9058eb2bd62c43eaed8d806f61 (patch)
tree6e35fc88f443bbe6c8c13debc0b69f13e600cfb3
parentc44d4f37b8952c69bedd7bee1fcda448424ee41b (diff)
Optimize remind plugin exploiting new message mapper
-rw-r--r--data/rbot/plugins/remind.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/data/rbot/plugins/remind.rb b/data/rbot/plugins/remind.rb
index ef9d4be7..8cc263b8 100644
--- a/data/rbot/plugins/remind.rb
+++ b/data/rbot/plugins/remind.rb
@@ -216,13 +216,9 @@ class RemindPlugin < Plugin
end
plugin = RemindPlugin.new
plugin.map 'remind me no more', :action => 'no_more'
-plugin.map 'remind me no more about *string', :action => 'no_more'
-plugin.map 'remind me no more *string', :action => 'no_more'
-plugin.map 'remind me about *string'
-plugin.map 'remind me *string'
+plugin.map 'remind me no more [about] *string', :action => 'no_more'
+plugin.map 'remind me [about] *string'
plugin.map 'remind :who no more', :auth => 'remind_other', :action => 'no_more'
-plugin.map 'remind :who no more about *string', :auth => 'remind_other', :action => 'no_more'
-plugin.map 'remind :who no more *string', :auth => 'remind_other', :action => 'no_more'
-plugin.map 'remind :who about *string', :auth => 'remind_other'
-plugin.map 'remind :who *string', :auth => 'remind_other'
+plugin.map 'remind :who no more [about] *string', :auth => 'remind_other', :action => 'no_more'
+plugin.map 'remind :who [about] *string', :auth => 'remind_other'