From e351c9321ccb7fd66afe38241e5e123118a338a4 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 28 Apr 2021 20:04:59 +0200 Subject: types: Ignore unused or nonsensical types and flags As this program interacts with quassel's database only, it does not have access to any state the UI carries. Some types (such as DAYCHANGE, IGNORED, BACKLOG, GROUP) seem to not be represented in the database at all, most likely only set on data structures in memory by the quasselclient application. Some others make no real sense to include in an application like this, which is more focused on human-readable messages and circumstances. For example, INVALID, REDIRECTED, SERVERMSG, etc are all of less concern to the average user than, say, matching on nicknames or buffers. Therefore, ignore all of these until we find a good use for them. --- quarg/quassel/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'quarg/quassel/formatter.py') diff --git a/quarg/quassel/formatter.py b/quarg/quassel/formatter.py index 9c89970..b6235e8 100644 --- a/quarg/quassel/formatter.py +++ b/quarg/quassel/formatter.py @@ -109,7 +109,7 @@ FORMATTERS = { MessageType.SERVER: format_generic, MessageType.INFO: format_generic, MessageType.ERROR: format_generic, - MessageType.DAYCHANGE: format_generic, + # MessageType.DAYCHANGE: format_generic, MessageType.TOPIC: format_generic, MessageType.NETSPLIT_JOIN: partial(format_netsplit, True), MessageType.NETSPLIT_QUIT: partial(format_netsplit, False), -- cgit v1.2.3-2-gb3c3