From 6ef120a1f8782605fc91c92f129fa34896bba79f Mon Sep 17 00:00:00 2001 From: Adam James Date: Tue, 25 Mar 2008 23:57:21 +0000 Subject: core/auth.rb: don't allow the master password to be told to a user, and correct the message. --- lib/rbot/core/auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3