mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Allow for changed method names.
This commit is contained in:
parent
4fec6def71
commit
eb4905dda2
@ -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 '
|
||||||
|
Loading…
Reference in New Issue
Block a user