server: Add a maximum value for the number of nicklist users.

This commit is contained in:
Damir Jelić 2018-10-30 21:12:41 +01:00
parent d896962b19
commit 74efe8ef9b
5 changed files with 122 additions and 35 deletions

11
main.py
View file

@ -34,9 +34,14 @@ from logbook import Logger, StreamHandler
from nio import RemoteProtocolError, RemoteTransportError, TransportType
from matrix import globals as G
from matrix.bar_items import (init_bar_items, matrix_bar_item_buffer_modes,
matrix_bar_item_lag, matrix_bar_item_name,
matrix_bar_item_plugin)
from matrix.bar_items import (
init_bar_items,
matrix_bar_item_buffer_modes,
matrix_bar_item_lag,
matrix_bar_item_name,
matrix_bar_item_plugin,
matrix_bar_nicklist_count
)
from matrix.buffer import room_buffer_close_cb, room_buffer_input_cb
# Weechat searches for the registered callbacks in the scope of the main script
# file, import the callbacks here so weechat can find them.