commands: Fix buffer clearing.
This commit is contained in:
parent
8f1c79e640
commit
ccb263977a
1 changed files with 2 additions and 2 deletions
|
@ -754,8 +754,8 @@ def hook_page_up():
|
|||
def matrix_command_buf_clear_cb(data, buffer, command):
|
||||
for server in SERVERS.values():
|
||||
if buffer in server.buffers.values():
|
||||
room_id = key_from_value(server.buffers, buffer)
|
||||
server.rooms[room_id].prev_batch = server.next_batch
|
||||
room_buffer = server.find_room_from_ptr(buffer)
|
||||
room_buffer.room.prev_batch = server.next_batch
|
||||
|
||||
return W.WEECHAT_RC_OK
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue