aboutsummaryrefslogtreecommitdiff
path: root/Utils.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-17 13:09:45 +0100
committerGravatar jesopo2018-09-17 13:09:45 +0100
commit840957fda44fa71ccd892b25509b73d9ed5ee1f2 (patch)
tree8e9c3af2fa064f1c19a6c027133c1f646dd86955 /Utils.py
parentIn handling raw.part, remove_channel after calling self.part instead of before (diff)
signature
Utils.irc_lower was returning an unchanged string because .replace on a string
returns a new string
Diffstat (limited to 'Utils.py')
-rw-r--r--Utils.py2
1 files changed, 1 insertions, 1 deletions
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":