Don't set label when changing buffer name
This caused a bug where the short_name got a double prefix, because the
label was set to the short_name which wasn't changed.
@@ -834,6 +834,7 @@ def reconnect_callback(*args):
def buffer_renamed_cb(data, signal, current_buffer):
channel = EVENTROUTER.weechat_controller.buffers.get(current_buffer)
if channel and not channel.buffer_rename_in_progress:
+ if not w.buffer_get_string(channel.channel_buffer, "old_full_name"):
channel.label = w.buffer_get_string(channel.channel_buffer, "short_name")
channel.rename()
return w.WEECHAT_RC_OK
