erocs/JukeAlert — pull request #79 by MCL0stman (2013-09-16 04:31:04+00:00)
Title: JukeAlert - Added support for /jaMute

New command /jamute added. This will allow you to mute notifications
from a group such that they will not be sent to you. This will not impact
logging of these notifications and will simply impact the data sent
to your client for display purposes.
This functions much like the traditional /ignore command in so far as that
it is non-persistent, by design, and can be wiped by simply reconnecting.

Syntax:
/jamute - This will list all the groups you have ignored (up to 100
characters).
/jamute GroupName - this will either add or remove the GroupName from your
ignore list (toggle).

Test cases passed:
Test Cases:
- A user that has not used /jamute does not have their notifications modified.
- A user that adds something to the ignore list and then removes it does not have their notifications modified.
- A user that adds something to the ignore list does not get notified of any snitch notifications.
- A user that adds something to the ignore list for a logging-snitch still has the snitch log showing *ENTER* / etc.
- A user can add any group to their ignore list, even if this group does not exist.
- A user adding a group to the list - for a group they are not a member of - does not expose any information about this group or even if it exists.
- A user that reconnects has their ignore list reset.
- A user that ignores a group they do not have access to is not granted any special permissions regarding this group.
- A user can add an arbitrary number of groups.
- A user can review the list of groups (up to the max) that they have ignored by typing /jamute with no arguments.
- If a user has too long a string (or too many groups) ignored, it will truncate in the /jamute returned list at some point.
- If a user has a group that has truncated in the /jamute returned list, it would still work as expected in muting the notification.
- Help statement shows up ok if /help jamute is typed.
- Help statement shows up ok if /jahelp is typed.
- Version number is incremented.