mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 23:54:08 +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:
|
||||
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
|
||||
|
||||
if notice:
|
||||
|
Loading…
Reference in New Issue
Block a user