aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/quarg/quassel/types.py
diff options
context:
space:
mode:
authorWolfgang Müller2021-04-28 20:04:59 +0200
committerWolfgang Müller2021-04-28 20:15:53 +0200
commite351c9321ccb7fd66afe38241e5e123118a338a4 (patch)
treee7587093eee1492aa16e51db99fe1d7d9d0cfd43 /quarg/quassel/types.py
parent5a99ca2ca6f78e94b36a52543139930705af56a9 (diff)
downloadquarg-e351c9321ccb7fd66afe38241e5e123118a338a4.tar.gz
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.
Diffstat (limited to 'quarg/quassel/types.py')
-rw-r--r--quarg/quassel/types.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/quarg/quassel/types.py b/quarg/quassel/types.py
index 36f385a..9648287 100644
--- a/quarg/quassel/types.py
+++ b/quarg/quassel/types.py
@@ -1,11 +1,11 @@
from enum import Enum
class BufferType(Enum):
- INVALID = 0x0
+ # INVALID = 0x0
STATUS = 0x1
CHANNEL = 0x2
QUERY = 0x4
- GROUP = 0x8
+ # GROUP = 0x8
@classmethod
def describe(cls):
@@ -15,11 +15,11 @@ class MessageFlag(Enum):
NONE = 0x0
SELF = 0x1
HIGHLIGHT = 0x2
- REDIRECTED = 0x4
- SERVERMSG = 0x8
- STATUSMSG = 0x10
- IGNORED = 0x20
- BACKLOG = 0x80
+ # REDIRECTED = 0x4
+ # SERVERMSG = 0x8
+ # STATUSMSG = 0x10
+ # IGNORED = 0x20
+ # BACKLOG = 0x80
@classmethod
def describe(cls):
@@ -39,8 +39,7 @@ class MessageType(Enum):
SERVER = 0x400
INFO = 0x800
ERROR = 0x1000
- # as far as I can see DAYCHANGE does not show up in the database
- DAYCHANGE = 0x2000
+ # DAYCHANGE = 0x2000
TOPIC = 0x4000
NETSPLIT_JOIN = 0x8000
NETSPLIT_QUIT = 0x10000