diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-08-14 13:20:47 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-08-14 13:20:47 +0200 |
commit | 2c204265771c1bb9e012c283dc05f89c96d785a8 (patch) | |
tree | 5d82f941cda3e9813e2563ef2ca22370ca07ef6f /src/plugins/irc/irc-raw.c | |
parent | cc3a4834d02feef08cb413d8fb37f18369bb432b (diff) | |
download | weechat-2c204265771c1bb9e012c283dc05f89c96d785a8.zip |
irc: set short name on buffers only if it was not set by another plugin/script
Diffstat (limited to 'src/plugins/irc/irc-raw.c')
-rw-r--r-- | src/plugins/irc/irc-raw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-raw.c b/src/plugins/irc/irc-raw.c index 01cb97d93..3074979d3 100644 --- a/src/plugins/irc/irc-raw.c +++ b/src/plugins/irc/irc-raw.c @@ -85,7 +85,11 @@ irc_raw_open (int switch_to_buffer) weechat_buffer_set (irc_raw_buffer, "title", _("IRC raw messages")); - weechat_buffer_set (irc_raw_buffer, "short_name", IRC_RAW_BUFFER_NAME); + if (!weechat_buffer_get_string (irc_raw_buffer, "short_name")) + { + weechat_buffer_set (irc_raw_buffer, "short_name", + IRC_RAW_BUFFER_NAME); + } weechat_buffer_set (irc_raw_buffer, "localvar_set_type", "debug"); weechat_buffer_set (irc_raw_buffer, "localvar_set_server", IRC_RAW_BUFFER_NAME); weechat_buffer_set (irc_raw_buffer, "localvar_set_channel", IRC_RAW_BUFFER_NAME); |