User: Require set.password to be sent in private.

Closes: Sf#3055365
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit f977a3a260)

Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
This commit is contained in:
James Vega 2010-08-29 11:03:05 -04:00 committed by Daniel Folkinshteyn
parent 2c812cfd9e
commit 5e72daa5f4

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>]