3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 03:04:05 +01:00

clientbot: fix possible TypeError in squit()

This commit is contained in:
James Lu 2017-09-23 21:54:42 -07:00
parent a2a32ed32f
commit 76a0eb78e3

View File

@ -312,7 +312,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
# Removing pseudoclients and pseudoservers.
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])
def _stub(self, *args):