From 3096c54bb8d8dca614eb95db46352acf25209f07 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 10 Mar 2017 23:19:43 -0800 Subject: [PATCH] Irc: return in msg() if the main client is missing and no explicit source is set --- classes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes.py b/classes.py index e75ad6c..ac6b788 100644 --- a/classes.py +++ b/classes.py @@ -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: