diff options
Diffstat (limited to 'quarg/quassel')
-rw-r--r-- | quarg/quassel/formatter.py | 5 | ||||
-rw-r--r-- | quarg/quassel/types.py | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/quarg/quassel/formatter.py b/quarg/quassel/formatter.py index 7e7bce6..888d145 100644 --- a/quarg/quassel/formatter.py +++ b/quarg/quassel/formatter.py @@ -1,9 +1,10 @@ import datetime - from functools import partial from typing import NamedTuple + from quarg.quassel.types import MessageType + class User(NamedTuple): nick: str host: str @@ -61,8 +62,6 @@ def format_kick(msg): return f'<-* {msg.user} has kicked {target} from {msg.buffer}' def format_kill(msg): - # pylint: disable=line-too-long - # As of 2021-04-24 not even Quassel implements printing this message [1]. # They do have a symbol [2] for it, however, so use that along with the message # [1] https://github.com/quassel/quassel/blob/285215315e6f2420724532323a4b1bccae156cb1/src/uisupport/uistyle.cpp#L950 diff --git a/quarg/quassel/types.py b/quarg/quassel/types.py index 0ba5a11..2632151 100644 --- a/quarg/quassel/types.py +++ b/quarg/quassel/types.py @@ -1,5 +1,6 @@ from enum import Enum + class BufferType(Enum): # INVALID = 0x0 STATUS = 0x1 |