mrshu / brutal-plugins

A set of plugins for brutal, the mighty chatbot
Apache License 2.0
4 stars 2 forks source link

sn: Fix problem with empty list of notes. #90

Closed pepol closed 9 years ago

pepol commented 9 years ago

Currently, if there used to be a note for user, even after this note is read, command list_stickynote shows that there are still notes for that user. This is not what people would expect (we only want a list of people who actually have a non-empty list of SNs waiting for them) and thus needs to be fixed.

Example:

<b> !list_stickynotes
<brutal> There are no sticky notes.
<b> !sn a check this out: http://example.com
<brutal> Sticky note for a prepared.
<b> !list_stickynotes
<brutal> I have sticky notes for: a
a joins
<brutal> a: check this out: http://example.com (sticky note from b)
<a> !list_stickynotes
<brutal> I have sticky notes for: a

@JakubNvk, since you've done the original SNs, would you be willing to fix this?