Open flashcode opened 7 years ago
I think it's a mistake disallowing spaces. In the real world modern chat system, spaces in room names are normal, not rare. WeeChat should strive to support such names going forward rather than making it impossible. In the weechat-matrix client spaces mostly work just fine, but there's some issues that I would categorize as minor, with navigating using /buffer commands etc. Works fine in glowing-bear relay client too.
Would it be wrong to quote names with a space or escape the space with a backslash like shells do?
The buffer names (
name
andfull_name
) should not contain spaces.Spaces are causing problems in commands like
/buffer
and in the relay protocol, where there's a split of arguments on spaces (see https://github.com/ubergeek42/weechat-android/pull/346).This can be implemented in many ways:
buffer_new
will fail and return NULL if there's a space in namebuffer_new
. The only problem is that there can be a conflict between two different names (for exampleplugin.test buffer
andplugin.test_buffer
.Removing all spaces in buffer names can have an impact on external plugins/scripts.