From 6b81bf9049cb7c1ba0acea26a9ad37db9fe8c163 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 8 Jan 2009 21:49:10 +0100 Subject: auth core botmodule: fix permission view without a specified user --- 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 9e9d3575..af38b76f 100644 --- a/lib/rbot/core/auth.rb +++ b/lib/rbot/core/auth.rb @@ -160,7 +160,7 @@ class AuthModule < CoreBotModule def auth_view_perm(m, params) begin if params[:user].nil? - user = get_botusername_for(m.source) + user = get_botuser_for(m.source) return m.reply(_("you are owner, you can do anything")) if user.owner? else user = @bot.auth.get_botuser(params[:user].sub(/^all$/,"everyone")) -- cgit v1.2.3