The ignore() function in dispatch.py only checks if a message starts with any of the ignore strings. This led to the bot replying with settings.DEFAULT_REPLY whenever someone in a channel used @here anywhere except the start of their message.
This commit checks for the presence of settings.IGNORE_NOTIFIES strings anywhere in a message rather than just in the beginning.
The
ignore()
function indispatch.py
only checks if a message starts with any of the ignore strings. This led to the bot replying withsettings.DEFAULT_REPLY
whenever someone in a channel used@here
anywhere except the start of their message.This commit checks for the presence of
settings.IGNORE_NOTIFIES
strings anywhere in a message rather than just in the beginning.