User: Require set.password be sent in private.

Closes: Sf#3055365
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2010-08-29 11:03:05 -04:00
parent 07da8cab13
commit f977a3a260

View File

@ -187,7 +187,8 @@ class User(callbacks.Plugin):
irc.replySuccess()
else:
irc.error(conf.supybot.replies.incorrectAuthentication())
password = wrap(password, ['otherUser', 'something', 'something'])
password = wrap(password, ['private', 'otherUser', 'something',
'something'])
def secure(self, irc, msg, args, user, password, value):
"""<password> [<True|False>]