From a5f3131154ad3ad1bf4e8ff5b45210a3fe17eb46 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 26 Aug 2007 08:29:17 +0000 Subject: auth core module: fix a bug in the permissions set argument parser --- lib/rbot/core/auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb index cb54c057..97429041 100644 --- a/lib/rbot/core/auth.rb +++ b/lib/rbot/core/auth.rb @@ -74,7 +74,7 @@ class AuthModule < CoreBotModule when false locs << x.gsub(/^here$/,'_').gsub(/^private$/,'?') else - warns << ArgumentError("%{string} doesn't look like a channel name" % {:string => x}) unless @bot.server.supports[:chantypes].include?(x[0]) + warns << ArgumentError.new(_("'%{string}' doesn't look like a channel name") % {:string => x}) unless @bot.server.supports[:chantypes].include?(x[0]) locs << x end unless want_more -- cgit v1.2.3