mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
clientbot: only send SQUIT payload if nicks are affected
This commit is contained in:
parent
5444b808b1
commit
29bfe108fe
@ -241,7 +241,8 @@ class ClientbotWrapperProtocol(Protocol):
|
|||||||
# 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])
|
||||||
|
|
||||||
self.irc.callHooks([source, 'CLIENTBOT_SQUIT', squit_data])
|
if squit_data.get('nicks'):
|
||||||
|
self.irc.callHooks([source, 'CLIENTBOT_SQUIT', squit_data])
|
||||||
|
|
||||||
def _stub(self, *args):
|
def _stub(self, *args):
|
||||||
"""Stub outgoing command function (does nothing)."""
|
"""Stub outgoing command function (does nothing)."""
|
||||||
|
Loading…
Reference in New Issue
Block a user