1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

core: allow empty short name on buffers (name is used if not set)

This commit is contained in:
Sebastien Helleu
2011-08-14 13:20:03 +02:00
parent 1cb7c6a6c5
commit cc3a4834d0
9 changed files with 81 additions and 60 deletions
+1 -2
View File
@@ -439,8 +439,7 @@ upgrade_weechat_read_cb (void *data,
strdup (infolist_string (infolist, "plugin_name"));
upgrade_current_buffer->short_name =
(infolist_string (infolist, "short_name")) ?
strdup (infolist_string (infolist, "short_name")) :
strdup (infolist_string (infolist, "name"));
strdup (infolist_string (infolist, "short_name")) : NULL;
upgrade_current_buffer->type =
infolist_integer (infolist, "type");
upgrade_current_buffer->notify =