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:
parent
b09565a723
commit
3096c54bb8
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user