]> git.cworth.org Git - turbot/commit
Don't re-set channel and sheet name or channel topic to the same value as before
authorCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 07:04:55 +0000 (23:04 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2021 07:04:55 +0000 (23:04 -0800)
commit915b439e07c5b4aaef754f5f41360d862149a3fc
tree35b23c88641f01343db0ba5eb5feb358916bb2f7
parent65d277e6962108c5fdfe30cae4d66e4db29ce150
Don't re-set channel and sheet name or channel topic to the same value as before

The puzzle_update_channel_and_sheet function is modified here to
accept an old_puzzle argument in addition to the puzzle argument. By
using this it can decide whether there's any change in the sheet or
channel data before setting it.

This optimization avoids Slack reporting things like:

    Turbot renamed the channel from "hunt-puzzle" to "hunt-puzzle"

Which is obviously just noise.
turbot/interaction.py
turbot/puzzle.py