diff options
| author | 2018-11-14 22:10:45 +0000 | |
|---|---|---|
| committer | 2018-11-14 22:10:45 +0000 | |
| commit | 1380f6c53494c3f9490b292576eb48594570f38e (patch) | |
| tree | adb3c47286e69855e02530899fb47492a8067210 /src | |
| parent | Stop supporting using ansi bold for brightening colors, support ansi background (diff) | |
| signature | ||
Typo in utils.irc, 'message' -> 'ctcp_message'
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils/irc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py index 664da76a..5c1c50eb 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -258,8 +258,8 @@ def parse_ctcp(s: str) -> typing.Optional[CTCPMessage]: ctcp = s.startswith("\x01") if s.startswith("\x01"): ctcp_command, sep, ctcp_message = s[1:].partition(" ") - if message.endswith("\x01"): - message = message[:-1] + if ctcp_message.endswith("\x01"): + ctcp_message = message[:-1] return CTCPMessage(ctcp_command, ctcp_message) return None |
