]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
auth core module: fix a bug in the permissions set argument parser
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 08:29:17 +0000 (08:29 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 08:29:17 +0000 (08:29 +0000)
lib/rbot/core/auth.rb

index cb54c057fb182978e94e37a1eb40c0256fab4bf9..9742904161d49ac0a6866a7dd1544e67f2b360f4 100644 (file)
@@ -74,7 +74,7 @@ class AuthModule < CoreBotModule
         when false\r
           locs << x.gsub(/^here$/,'_').gsub(/^private$/,'?')\r
         else\r
-          warns << ArgumentError("%{string} doesn't look like a channel name" % {:string => x}) unless @bot.server.supports[:chantypes].include?(x[0])\r
+          warns << ArgumentError.new(_("'%{string}' doesn't look like a channel name") % {:string => x}) unless @bot.server.supports[:chantypes].include?(x[0])\r
           locs << x\r
         end\r
         unless want_more\r