mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +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> defaults to the current network.
|
||||||
"""
|
"""
|
||||||
network = network.network or irc.network
|
network = network.network or irc.network
|
||||||
|
try:
|
||||||
user = user or ircdb.users.getUser(msg.prefix)
|
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)
|
self._check_auth(irc, msg, user)
|
||||||
try:
|
try:
|
||||||
list_ = user.nicks[network]
|
list_ = user.nicks[network]
|
||||||
|
Loading…
Reference in New Issue
Block a user