From 088de492788cba9058eb2bd62c43eaed8d806f61 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 25 Aug 2006 23:34:51 +0000 Subject: [PATCH 1/1] Optimize remind plugin exploiting new message mapper --- data/rbot/plugins/remind.rb | 12 ++++-------- 1 file 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' -- 2.39.2