mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-25 20:41:18 -05:00
Services: Fix crash in __call__
When a password is added for a nick that is not a valid config entry name, this causes _getNickServPassword to raise an error; and __call__ needs to catch it or the bot becomes unusable.
This commit is contained in:
parent
01cdfee53e
commit
b3f256681f
@ -179,7 +179,11 @@ class Services(callbacks.Plugin):
|
|||||||
if nick not in self.registryValue('nicks', network=irc.network):
|
if nick not in self.registryValue('nicks', network=irc.network):
|
||||||
return
|
return
|
||||||
nickserv = self.registryValue('NickServ', network=irc.network)
|
nickserv = self.registryValue('NickServ', network=irc.network)
|
||||||
password = self._getNickServPassword(nick, irc.network)
|
try:
|
||||||
|
password = self._getNickServPassword(nick, irc.network)
|
||||||
|
except Exception:
|
||||||
|
self.log.exception('Could not get NickServ password for %s', nick)
|
||||||
|
return
|
||||||
ghostDelay = self.registryValue('ghostDelay', network=irc.network)
|
ghostDelay = self.registryValue('ghostDelay', network=irc.network)
|
||||||
if not ghostDelay:
|
if not ghostDelay:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user