Add new_channel_position option (with no functionality)

This commit is contained in:
Marco Sirabella 2019-11-19 20:53:05 -05:00
parent 1fe0215e44
commit 56e6781abe
No known key found for this signature in database
GPG key ID: 350CE23EFB20D1A7

View file

@ -26,7 +26,7 @@ Server specific configuration options are handled in server.py
from builtins import super
from collections import namedtuple
from enum import Enum, unique
from enum import IntEnum, Enum, unique
import logbook
@ -51,6 +51,13 @@ class ServerBufferType(Enum):
INDEPENDENT = 2
@unique
class NewChannelPosition(IntEnum):
NONE = 0
NEXT = 1
NEAR_SERVER = 2
nio.logger_group.level = logbook.ERROR
@ -426,6 +433,19 @@ class MatrixConfig(WeechatConfig):
ServerBufferType,
config_server_buffer_cb,
),
Option(
"new_channel_position",
"integer",
"none|next|near_server",
min(NewChannelPosition),
max(NewChannelPosition),
"none",
"force position of new channel in list of buffers "
"(none = default position (should be last buffer), "
"next = current buffer + 1, near_server = after last "
"channel/pv of server)",
NewChannelPosition,
),
Option(
"max_typing_notice_item_length",
"integer",