diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-08 21:49:10 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-08 21:49:10 +0100 |
commit | 6b81bf9049cb7c1ba0acea26a9ad37db9fe8c163 (patch) | |
tree | 3d6c63e632e803c38f9be1c79fb158bbe429a99c /lib | |
parent | 01466928fae8d87d5e09237b4eeb49259f252fb3 (diff) |
auth core botmodule: fix permission view without a specified user
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/core/auth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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")) |