From 4f9734935a1f549099780036cf704d4b32f4c180 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 7 Feb 2025 22:02:23 +0100 Subject: [PATCH] ChannelStats: Fix crash caused by expectation of __str__ being called before setValue This assumption no longer true since 8ec873015aac3ba4193a2d498eb294975615b296. --- plugins/ChannelStats/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/ChannelStats/config.py b/plugins/ChannelStats/config.py index de1959032..ccea66284 100644 --- a/plugins/ChannelStats/config.py +++ b/plugins/ChannelStats/config.py @@ -45,6 +45,10 @@ def configure(advanced): conf.registerPlugin('ChannelStats', True) class Smileys(registry.Value): + def __init__(self, *args, **kwargs): + self.s = '' + super().__init__(*args, **kwargs) + def set(self, s): L = s.split() self.setValue(L)