diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-01-04 10:38:11 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-01-04 10:38:11 +0100 |
commit | ce3091c75f91e0797073c5a6efd9aab338ce6c62 (patch) | |
tree | 7b99f3f0dc00f5551b9d55b26bf1b35dfa2d6de6 /src/plugins/irc/irc-command.c | |
parent | 88aa905ee36bdfb631492968eb0f1691beae6235 (diff) | |
download | weechat-ce3091c75f91e0797073c5a6efd9aab338ce6c62.zip |
Fix exec of IRC command when connecting to server if server buffers are merged, and that server is not the selected server
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r-- | src/plugins/irc/irc-command.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index cfcb8bf45..1bc3f25be 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -2732,7 +2732,7 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc, { int i, detailed_list, one_server_found; struct t_irc_server *ptr_server2, *server_found, *new_server; - char *server_name, charset_modifier[256]; + char *server_name; IRC_GET_SERVER_CHANNEL(buffer); @@ -3102,14 +3102,7 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc, } } } - irc_server_set_buffer_title (irc_current_server); - snprintf (charset_modifier, sizeof (charset_modifier), - "irc.%s", irc_current_server->name); - weechat_buffer_set (irc_current_server->buffer, - "localvar_set_charset_modifier", - charset_modifier); - weechat_bar_item_update ("buffer_name"); - weechat_bar_item_update ("input_prompt"); + irc_server_set_current_server (irc_current_server); } return WEECHAT_RC_OK; } |