From 840957fda44fa71ccd892b25509b73d9ed5ee1f2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 17 Sep 2018 13:09:45 +0100 Subject: [PATCH] Utils.irc_lower was returning an unchanged string because .replace on a string returns a new string --- Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils.py b/Utils.py index 19985bd1..7c87e495 100644 --- a/Utils.py +++ b/Utils.py @@ -23,7 +23,7 @@ def arbitrary(s, n): # case mapping lowercase/uppcase logic def _multi_replace(s, chars1, chars2): for char1, char2 in zip(chars1, chars2): - s.replace(char1, char2) + s = s.replace(char1, char2) return s def irc_lower(server, s): if server.case_mapping == "ascii":