summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-17 13:10:54 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-17 13:10:54 +0200
commit4df0edbe342fbc18f3baffddacb71fd19c3e056e (patch)
treea7cee5f05d6fd606aa591599f0bd73a07d1814b8
parentdf69add9704b3b23bc650b8ea55bf13c3177dd77 (diff)
downloadweechat-4df0edbe342fbc18f3baffddacb71fd19c3e056e.zip
irc: fix short name of server buffer after command /server rename
-rw-r--r--src/plugins/irc/irc-server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index fe1b0617f..2de04d13d 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -1299,8 +1299,7 @@ irc_server_rename (struct t_irc_server *server, const char *new_server_name)
{
buffer_name = irc_buffer_build_name (server->name, NULL);
weechat_buffer_set (server->buffer, "name", buffer_name);
- if (!weechat_buffer_get_integer (server->buffer, "short_name_is_set"))
- weechat_buffer_set (server->buffer, "short_name", server->name);
+ weechat_buffer_set (server->buffer, "short_name", server->name);
weechat_buffer_set (server->buffer, "localvar_set_server",
server->name);
weechat_buffer_set (server->buffer, "localvar_set_channel",