mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-03 08:04:07 +01:00
clientbot: fix possible TypeError in squit()
This commit is contained in:
parent
a2a32ed32f
commit
76a0eb78e3
@ -312,7 +312,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
# Removing pseudoclients and pseudoservers.
|
# Removing pseudoclients and pseudoservers.
|
||||||
squit_data = self._squit(source, 'CLIENTBOT_VIRTUAL_SQUIT', [target, text])
|
squit_data = self._squit(source, 'CLIENTBOT_VIRTUAL_SQUIT', [target, text])
|
||||||
|
|
||||||
if squit_data.get('nicks'):
|
if squit_data and squit_data.get('nicks'):
|
||||||
self.call_hooks([source, 'CLIENTBOT_SQUIT', squit_data])
|
self.call_hooks([source, 'CLIENTBOT_SQUIT', squit_data])
|
||||||
|
|
||||||
def _stub(self, *args):
|
def _stub(self, *args):
|
||||||
|
Loading…
Reference in New Issue
Block a user