summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-14 13:27:05 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-14 13:27:05 +0200
commitae2c061350e05230ad8423ba24adc08d0a19e7a2 (patch)
treebee2429e9717fea663df659a43b994b150b3acbe
parent15d78a45a84561f44537c3cbc4f20a9d72bba282 (diff)
downloadweechat-ae2c061350e05230ad8423ba24adc08d0a19e7a2.zip
xfer: set short name for xfer chat buffer (dcc chat) only if it was not set by another plugin/script
-rw-r--r--src/plugins/xfer/xfer-chat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/xfer/xfer-chat.c b/src/plugins/xfer/xfer-chat.c
index c2255108a..b1cf3b793 100644
--- a/src/plugins/xfer/xfer-chat.c
+++ b/src/plugins/xfer/xfer-chat.c
@@ -333,7 +333,11 @@ xfer_chat_open_buffer (struct t_xfer *xfer)
if (buffer_created)
{
weechat_buffer_set (xfer->buffer, "title", _("xfer chat"));
- weechat_buffer_set (xfer->buffer, "short_name", xfer->remote_nick);
+ if (!weechat_buffer_get_string (xfer->buffer, "short_name"))
+ {
+ weechat_buffer_set (xfer->buffer, "short_name",
+ xfer->remote_nick);
+ }
weechat_buffer_set (xfer->buffer, "localvar_set_type", "private");
weechat_buffer_set (xfer->buffer, "localvar_set_nick", xfer->local_nick);
weechat_buffer_set (xfer->buffer, "localvar_set_channel", xfer->remote_nick);