Allow for changed method names.

This commit is contained in:
Jeremy Fincher 2004-09-13 02:05:22 +00:00
parent 4fec6def71
commit eb4905dda2

View File

@ -391,7 +391,7 @@ class User(callbacks.Privmsg):
return return
if user.checkPassword(password): if user.checkPassword(password):
try: try:
user.setAuth(msg.prefix) user.addAuth(msg.prefix)
ircdb.users.setUser(id, user) ircdb.users.setUser(id, user)
irc.replySuccess() irc.replySuccess()
except ValueError: except ValueError:
@ -414,7 +414,7 @@ class User(callbacks.Privmsg):
except KeyError: except KeyError:
irc.errorNoUser() irc.errorNoUser()
return return
user.unsetAuth() user.clearAuth()
ircdb.users.setUser(id, user) ircdb.users.setUser(id, user)
irc.replySuccess('If you remain recognized after giving this command, ' irc.replySuccess('If you remain recognized after giving this command, '
'you\'re being recognized by hostmask, rather than ' 'you\'re being recognized by hostmask, rather than '