From 31a06b8bcc112beadba441d299ba6a1ec0f8839c Mon Sep 17 00:00:00 2001 From: anne Date: Sun, 17 Sep 2023 14:55:47 +0200 Subject: [PATCH] URL encode spaces in moodmsg icon paths --- dataobjs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataobjs.py b/dataobjs.py index f2dc448..a861e20 100644 --- a/dataobjs.py +++ b/dataobjs.py @@ -375,14 +375,14 @@ class PesterProfile: def moodmsg(self, mood, syscolor, theme): return ( - "-- %s [%s] changed their mood to %s --" + '-- %s [%s] changed their mood to %s --' % ( syscolor.name(), self.handle, self.colorhtml(), self.initials(), mood.name().upper(), - theme["main/chums/moods"][mood.name()]["icon"], + theme["main/chums/moods"][mood.name()]["icon"].replace(" ", "%20"), ) )