From 423e066a1945e3e29ceaed8b38a6fdc531565b46 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 25 Mar 2003 23:07:34 +0000 Subject: [PATCH] Fixed unidentify to not require a name/password. --- src/privmsgs.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/privmsgs.py b/src/privmsgs.py index 68f62243f..383e097ae 100644 --- a/src/privmsgs.py +++ b/src/privmsgs.py @@ -1024,23 +1024,18 @@ class UserCommands(callbacks.Privmsg): return def unidentify(self, irc, msg, args): - """ + """takes no arguments - Un-identifies the user as . + Un-identifies the user. """ - (name, password) = getArgs(args, 2) - self._checkNotChannel(irc, msg) try: - u = ircdb.users.getUser(name) + u = ircdb.users.getUser(msg.prefix) except KeyError: irc.error(msg, conf.replyNoUser) return - if u.checkPassword(password): - u.unsetAuth() - ircdb.users.setUser(name, u) - irc.reply(msg, conf.replySuccess) - else: - irc.error(msg, conf.replyIncorrectAuth) + u.unsetAuth() + ircdb.users.setUser(name, u) + irc.reply(msg, conf.replySuccess) def whoami(self, irc, msg, args): """takes no arguments.