summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-raw.c')
-rw-r--r--src/plugins/irc/irc-raw.c6
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);