Unify handling of SWATCH NONE between OperView and non-OperView modes

Previously, SWATCH NONE meant "show no server notices" if OperView was
enabled, but "show all server notices" if OperView was disabled.  Now,
it always means "show no server notices" (the default SWATCH is ALL,
so the default will behave the same).

This allows us to simplify the code a great deal as well.

Also trim off leading "***" if the server messages are handled by
handle_oper_vision(), as they already are in parse_server_notice().
This commit is contained in:
Kevin Easton
2016-04-14 23:50:42 +10:00
parent 7c3648bb2c
commit e53d1cab7b
2 changed files with 20 additions and 33 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2.2]
* Unify handling of SWATCH NONE between OperView and non-OperView. (caf)
* Don't double-up server notices in the /RELS list. (caf)
* Don't fire the SERVER_NOTICE hook more than once per notice. (caf)