Make buffer name prefix a global constant
This commit is contained in:
parent
439389db4d
commit
de1d3d4664
2 changed files with 2 additions and 1 deletions
|
@ -904,7 +904,7 @@ class RoomBuffer(object):
|
|||
|
||||
self.last_message = None
|
||||
|
||||
buffer_name = "{}.{}.{}".format(G.SCRIPT_NAME, server_name, room.room_id)
|
||||
buffer_name = "{}{}.{}".format(G.BUFFER_NAME_PREFIX, server_name, room.room_id)
|
||||
|
||||
# This dict remembers the connection from a user_id to the name we
|
||||
# displayed in the buffer
|
||||
|
|
|
@ -42,6 +42,7 @@ SERVERS = dict() # type: Dict[str, MatrixServer]
|
|||
CONFIG = None # type: Any
|
||||
ENCRYPTION = True # type: bool
|
||||
SCRIPT_NAME = "matrix" # type: str
|
||||
BUFFER_NAME_PREFIX = "{}.".format(SCRIPT_NAME) # type: str
|
||||
TYPING_NOTICE_TIMEOUT = 4000 # 4 seconds typing notice lifetime
|
||||
LOGGER = Logger("weechat-matrix")
|
||||
UPLOADS = OrderedDict() # type: Dict[str, Upload]
|
||||
|
|
Loading…
Reference in a new issue