summaryrefslogtreecommitdiff
path: root/lib/rbot/core
diff options
context:
space:
mode:
authorAdam James <atj@pulsewidth.org.uk>2008-03-25 23:57:21 +0000
committerAdam James <atj@pulsewidth.org.uk>2008-03-25 23:57:21 +0000
commit6ef120a1f8782605fc91c92f129fa34896bba79f (patch)
tree6103fbe47308abdc0ede0c0d0138233d2434b3e2 /lib/rbot/core
parentab5703bcdf888e0ea9d65ba194eaeea922f72146 (diff)
core/auth.rb: don't allow the master password to be told to a user, and correct the message.
Diffstat (limited to 'lib/rbot/core')
-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 1066ecc8..0b8c8da4 100644
--- a/lib/rbot/core/auth.rb
+++ b/lib/rbot/core/auth.rb
@@ -584,7 +584,7 @@ class AuthModule < CoreBotModule
rescue
return m.reply(_("couldn't find botuser %{user}") % {:user => params[:botuser]})
end
- m.reply(_("I'm not telling the master password to anyway, pal")) if botuser == @bot.auth.botowner
+ return m.reply(_("I'm not telling the master password to anyone, pal")) if botuser == @bot.auth.botowner
msg = _("the password for botuser %{user} is %{password}") %
{:user => botuser.username, :password => botuser.password}
@bot.say user, msg