From: Giuseppe Bilotta Date: Fri, 25 Aug 2006 23:34:51 +0000 (+0000) Subject: Optimize remind plugin exploiting new message mapper X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=088de492788cba9058eb2bd62c43eaed8d806f61;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Optimize remind plugin exploiting new message mapper --- 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'