]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
tumblr: fix 'tumblr configure' regexps
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 21 Dec 2011 09:11:29 +0000 (10:11 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 21 Dec 2011 09:11:29 +0000 (10:11 +0100)
The way they were, specifying channel, email, password and group caused
the password to be merged with the email and the group to become the
password.

data/rbot/plugins/tumblr.rb

index 755cbce85c909bee6aa657590ca87b6c3692dcf0..57675ac482c1989051d8ba20a8e3fbb3b475a291 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 => /.+@.+/, :group => /[A-Za-z-]+/}
+  :requirements => {:channel => Regexp::Irc::GEN_CHAN, :email => /\S+@\S+/, :group => /[A-Za-z-.]+/}