mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fixed to handle secure flag properly.
This commit is contained in:
parent
7b28caba1b
commit
aee2b1555b
@ -288,9 +288,13 @@ class UserCommands(callbacks.Privmsg):
|
|||||||
irc.error(msg, conf.replyNoUser)
|
irc.error(msg, conf.replyNoUser)
|
||||||
return
|
return
|
||||||
if user.checkPassword(password):
|
if user.checkPassword(password):
|
||||||
|
try:
|
||||||
user.setAuth(msg.prefix)
|
user.setAuth(msg.prefix)
|
||||||
ircdb.users.setUser(id, user)
|
ircdb.users.setUser(id, user)
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
|
except ValueError:
|
||||||
|
irc.error(msg, 'Your secure flag is true and your hostmask '
|
||||||
|
'doesn\'t match any of your known hostmasks.')
|
||||||
else:
|
else:
|
||||||
irc.error(msg, conf.replyIncorrectAuth)
|
irc.error(msg, conf.replyIncorrectAuth)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user