Utils.irc_lower was returning an unchanged string because .replace on a string
returns a new string
This commit is contained in:
parent
9bb81253cb
commit
840957fda4
1 changed files with 1 additions and 1 deletions
2
Utils.py
2
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":
|
||||
|
|
Loading…
Reference in a new issue