allow : and , after @bot mentions

This commit is contained in:
2023-02-19 22:55:14 -06:00
parent 55d856b8fd
commit 39290fb63c
4 changed files with 28 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ class DrReactor(irc.client.Reactor):
[connection.get_nickname()])
else:
all_nicks = connection.get_nickname()
addressed_pattern = r'^(({nicks})[:,]|@({nicks}))\s+(?P<addressed_msg>.*)'.format(nicks=all_nicks)
addressed_pattern = r'^(({nicks})[:,]|@({nicks})[:,]?)\s+(?P<addressed_msg>.*)'.format(nicks=all_nicks)
# ignore the first word, a nick, if the speaker is the bridge
try: