ChannelStats: Fix crash caused by expectation of __str__ being called before setValue

This assumption no longer true since
8ec873015aac3ba4193a2d498eb294975615b296.
This commit is contained in:
Valentin Lorentz 2025-02-07 22:02:23 +01:00 committed by Val Lorentz
parent e57f7ebc2a
commit 4f9734935a

View File

@ -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)