1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

Add new property "short_name" for buffers

This commit is contained in:
Sebastien Helleu
2008-10-20 11:01:51 +02:00
parent 00dbaf7e64
commit a33e44c7e1
7 changed files with 44 additions and 9 deletions
+2
View File
@@ -96,6 +96,8 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
return NULL;
}
weechat_buffer_set (new_buffer, "short_name", (char *)channel_name);
weechat_hook_signal_send ("logger_backlog",
WEECHAT_HOOK_SIGNAL_POINTER, new_buffer);
}
+2
View File
@@ -3136,6 +3136,8 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc,
}
}
}
weechat_buffer_set (irc_current_server->buffer, "short_name",
irc_current_server->name);
weechat_bar_item_update ("buffer_name");
weechat_bar_item_update ("input_prompt");
return WEECHAT_RC_OK;
+2
View File
@@ -2179,6 +2179,8 @@ irc_server_connect (struct t_irc_server *server, int disable_autojoin)
irc_buffer_servers = server->buffer;
}
weechat_buffer_set (server->buffer, "short_name", server->name);
weechat_buffer_set (server->buffer, "display", "1");
weechat_bar_item_update ("buffer_name");