From 9b5c91ee577dae29caf13d180566a114fba5c263 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 1 Nov 2009 09:58:24 +0100 Subject: tumblr: better guess for group name on ## channels --- data/rbot/plugins/tumblr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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]), -- cgit v1.2.3