summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/tumblr.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-11-01 09:58:24 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-11-01 10:37:02 +0100
commit9b5c91ee577dae29caf13d180566a114fba5c263 (patch)
tree7378fd48ecee7f8b27b624953684178bad0b5d14 /data/rbot/plugins/tumblr.rb
parentc1e2c7ff8a856bf606959a260023b815dcded3f6 (diff)
tumblr: better guess for group name on ## channels
Diffstat (limited to 'data/rbot/plugins/tumblr.rb')
-rw-r--r--data/rbot/plugins/tumblr.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/tumblr.rb b/data/rbot/plugins/tumblr.rb
index af4bd2ce..55489743 100644
--- a/data/rbot/plugins/tumblr.rb
+++ b/data/rbot/plugins/tumblr.rb
@@ -116,7 +116,7 @@ class TumblrPlugin < Plugin
if @registry.key? channel
m.reply _("%{chan} already has credentials configured" % { :chan => channel })
else
- group = params[:group] || channel[1..-1]
+ group = params[:group] || Channel.npname(channel)
group << ".tumblr.com" unless group.match(/\.tumblr\.com/)
@registry[channel] = {
:email => CGI.escape(params[:email]),