matrix: Add a server buffer callback.
This commit is contained in:
parent
5fd5710225
commit
583926560a
1 changed files with 7 additions and 0 deletions
7
main.py
7
main.py
|
@ -420,6 +420,13 @@ def debug_buffer_close_cb(data, buffer):
|
|||
return W.WEECHAT_RC_OK
|
||||
|
||||
|
||||
def server_buffer_cb(server_name, buffer, input_data):
|
||||
message = ("{}{}: this buffer is not a room buffer!").format(
|
||||
W.prefix("error"), SCRIPT_NAME)
|
||||
W.prnt(buffer, message)
|
||||
return W.WEECHAT_RC_OK
|
||||
|
||||
|
||||
class WeechatHandler(StreamHandler):
|
||||
def __init__(self, level=logbook.NOTSET, format_string=None, filter=None,
|
||||
bubble=False):
|
||||
|
|
Loading…
Reference in a new issue