]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
tumblr: escape the non-range dash in the group regex
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 21 Jun 2012 06:03:20 +0000 (08:03 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 21 Jun 2012 06:03:20 +0000 (08:03 +0200)
data/rbot/plugins/tumblr.rb

index 57675ac482c1989051d8ba20a8e3fbb3b475a291..515dc479026e26289ffcf5d1c768eeffe741b172 100644 (file)
@@ -188,5 +188,5 @@ plugin.map 'tumblr configure [:channel]', :action => :configuration
 plugin.map 'tumblr deconfigure [:channel]', :action => :deconfigure
 plugin.map 'tumblr configure [:channel] :email :pwd [:group]',
   :action => :configure,
-  :requirements => {:channel => Regexp::Irc::GEN_CHAN, :email => /\S+@\S+/, :group => /[A-Za-z-.]+/}
+  :requirements => {:channel => Regexp::Irc::GEN_CHAN, :email => /\S+@\S+/, :group => /[A-Za-z\-.]+/}