Browse Source

Escape the nick when forming a regexp

master
Alexei Sorokin 3 years ago
parent
commit
47aab1356e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hptoad.py

+ 1
- 1
hptoad.py View File

@@ -215,7 +215,7 @@ class Hptoad:
futures = []

# Has to be redone with the current bot nick.
call_regexp = re.compile("^%s[:,]" % self.bot_nick)
call_regexp = re.compile("^%s[:,]" % re.escape(self.bot_nick))

for plugin in self.plugins.values():
future = asyncio.async(plugin.call_chat_message(body, nick,

Loading…
Cancel
Save