From 32a90748e267370fece0c9770c9d78889119b972 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 29 May 2019 12:28:38 -0400 Subject: [PATCH] osdstack --- sopel_modules/SpiceBot_osd/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sopel_modules/SpiceBot_osd/__init__.py b/sopel_modules/SpiceBot_osd/__init__.py index 8cd686f..2137386 100644 --- a/sopel_modules/SpiceBot_osd/__init__.py +++ b/sopel_modules/SpiceBot_osd/__init__.py @@ -252,6 +252,9 @@ class SopelOSD: will default to ``1``. """ + if not hasattr(self, 'osdstack'): + self.osdstack = {} + text_method = text_method.upper() if text_method == 'SAY' or text_method not in ['NOTICE', 'ACTION']: text_method = 'PRIVMSG'