mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
NickAuth: Fix traceback if user calling @list is not identified.
This commit is contained in:
parent
f22f0bb4b6
commit
baa4430291
@ -113,7 +113,11 @@ class NickAuth(callbacks.Plugin):
|
||||
<network> defaults to the current network.
|
||||
"""
|
||||
network = network.network or irc.network
|
||||
user = user or ircdb.users.getUser(msg.prefix)
|
||||
try:
|
||||
user = user or ircdb.users.getUser(msg.prefix)
|
||||
except KeyError:
|
||||
irc.error(_('You are not identified and <user> is not given.'),
|
||||
Raise=True)
|
||||
self._check_auth(irc, msg, user)
|
||||
try:
|
||||
list_ = user.nicks[network]
|
||||
|
Loading…
Reference in New Issue
Block a user