diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-11-01 09:58:24 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-11-01 10:37:02 +0100 |
commit | 9b5c91ee577dae29caf13d180566a114fba5c263 (patch) | |
tree | 7378fd48ecee7f8b27b624953684178bad0b5d14 | |
parent | c1e2c7ff8a856bf606959a260023b815dcded3f6 (diff) |
tumblr: better guess for group name on ## channels
-rw-r--r-- | data/rbot/plugins/tumblr.rb | 2 |
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]), |