aboutsummaryrefslogtreecommitdiff
path: root/src/utils/irc/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-20 16:53:40 +0000
committerGravatar jesopo2019-02-20 16:53:40 +0000
commitddb69685d3e811d1ef1879adad01c6ed549bf74a (patch)
treefc871fcef9591d44143e3d893d7d9f7cd2ee7ad1 /src/utils/irc/__init__.py
parentCheck throttle space when queueing more data not whether there's no queued data (diff)
signature
again, `r"\"` isn't valid.
Diffstat (limited to 'src/utils/irc/__init__.py')
-rw-r--r--src/utils/irc/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py
index 9c5c2b78..c14364a7 100644
--- a/src/utils/irc/__init__.py
+++ b/src/utils/irc/__init__.py
@@ -107,7 +107,7 @@ def message_tag_escape(s):
return _multi_replace(s, MESSAGE_TAG_UNESCAPED, MESSAGE_TAG_ESCAPED)
def message_tag_unescape(s):
unescaped = _multi_replace(s, MESSAGE_TAG_ESCAPED, MESSAGE_TAG_UNESCAPED)
- return unescaped.replace(r"\", "")
+ return unescaped.replace("\\", "")
def parse_line(line: str) -> IRCParsedLine:
tags = {} # type: typing.Dict[str, typing.Any]