summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-08 21:49:10 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-08 21:49:10 +0100
commit6b81bf9049cb7c1ba0acea26a9ad37db9fe8c163 (patch)
tree3d6c63e632e803c38f9be1c79fb158bbe429a99c /lib
parent01466928fae8d87d5e09237b4eeb49259f252fb3 (diff)
auth core botmodule: fix permission view without a specified user
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/auth.rb2
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"))