diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-08-14 13:27:05 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-08-14 13:27:05 +0200 |
commit | ae2c061350e05230ad8423ba24adc08d0a19e7a2 (patch) | |
tree | bee2429e9717fea663df659a43b994b150b3acbe /src/plugins/xfer/xfer-chat.c | |
parent | 15d78a45a84561f44537c3cbc4f20a9d72bba282 (diff) | |
download | weechat-ae2c061350e05230ad8423ba24adc08d0a19e7a2.zip |
xfer: set short name for xfer chat buffer (dcc chat) only if it was not set by another plugin/script
Diffstat (limited to 'src/plugins/xfer/xfer-chat.c')
-rw-r--r-- | src/plugins/xfer/xfer-chat.c | 6 |
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); |