summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-06 11:39:56 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-06 11:39:56 +0000
commit644a476274a2cbd5c96d370dbadb159ad17b054f (patch)
tree8af7f7db2d69c65120d7f79040d8f161b781a6bf /lib/rbot
parent791806cf0bca1d5a67bb3e0071203c42b36512d5 (diff)
After changing a botuser setting, the settings for the issuing botuser were displayed. This commit fixes it
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/auth.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb
index 77dc69ec..81b5d694 100644
--- a/lib/rbot/core/auth.rb
+++ b/lib/rbot/core/auth.rb
@@ -313,7 +313,7 @@ class AuthModule < CoreBotModule
m.reply "I haven't changed anything"
else
@bot.auth.set_changed
- return auth_manage_user(m, {:data => ["show"] + things })
+ return auth_manage_user(m, {:data => ["show"] + things + ["for", butarget.username] })
end
when :set
@@ -330,7 +330,7 @@ class AuthModule < CoreBotModule
end
set_prop(butarget, arg, argarg)
@bot.auth.set_changed
- auth_manage_user(m, {:data => ["show", arg] })
+ auth_manage_user(m, {:data => ["show", arg, "for", butarget.username] })
when :reset
return m.reply("you can't change the default user") if butarget == @bot.auth.everyone and !botuser.permit?("auth::edit::default")
@@ -355,7 +355,7 @@ class AuthModule < CoreBotModule
else
@bot.auth.set_changed
@bot.say m.source, "the password for #{butarget.username} is now #{butarget.password}" if things.include?("password")
- return auth_manage_user(m, {:data => ["show"] + things - ["password"]})
+ return auth_manage_user(m, {:data => (["show"] + things - ["password"]) + ["for", butarget.username]})
end
when :add, :rm, :remove, :del, :delete
@@ -380,7 +380,7 @@ class AuthModule < CoreBotModule
}
m.reply "I failed to #{cmd} #{failed.join(', ')}" unless failed.empty?
@bot.auth.set_changed
- return auth_manage_user(m, {:data => ["show", "netmasks"] })
+ return auth_manage_user(m, {:data => ["show", "netmasks", "for", butarget.username] })
else
m.reply "sorry, I don't know how to #{m.message}"