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

Irc: return in msg() if the main client is missing and no explicit source is set

This commit is contained in:
James Lu 2017-03-10 23:19:43 -08:00
parent b09565a723
commit 3096c54bb8

View File

@ -512,6 +512,9 @@ class Irc(utils.DeprecatedAttributesObject):
if not text: if not text:
return return
if not (source or self.pseudoclient):
# No explicit source set and our main client wasn't available; abort.
return
source = source or self.pseudoclient.uid source = source or self.pseudoclient.uid
if notice: if notice: