summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-22 23:34:55 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-22 23:34:55 +0200
commit6e9c14dd61c0d4ba72cbffe92869d12c29221999 (patch)
tree7fcd2c544c5e118fccd5df46b62084439190b42e
parentae7571a49733d965b6dba561c389a0e324c9e4f5 (diff)
downloadweechat-6e9c14dd61c0d4ba72cbffe92869d12c29221999.zip
irc: fix short name of buffer when nick changes in pv buffer
-rw-r--r--src/plugins/irc/irc-protocol.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 61dc789fb..9512c1dcf 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -851,12 +851,8 @@ IRC_PROTOCOL_CALLBACK(nick)
}
buffer_name = irc_buffer_build_name (server->name, ptr_channel->name);
weechat_buffer_set (ptr_channel->buffer, "name", buffer_name);
- if (!weechat_buffer_get_string (ptr_channel->buffer,
- "short_name"))
- {
- weechat_buffer_set (ptr_channel->buffer, "short_name",
- ptr_channel->name);
- }
+ weechat_buffer_set (ptr_channel->buffer, "short_name",
+ ptr_channel->name);
weechat_buffer_set (ptr_channel->buffer,
"localvar_set_channel", ptr_channel->name);
}