mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 01:33:12 +02:00
core: prohibit names beginning with "#" for bars, proxies, filters and IRC servers (bug #33020)
This commit is contained in:
@@ -3629,6 +3629,13 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
argv[2]);
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
if (argv[2][0] == '#')
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
_("%s%s: name can not start with \"#\""),
|
||||
weechat_prefix ("error"), IRC_PLUGIN_NAME);
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
new_server = irc_server_alloc (argv[2]);
|
||||
if (!new_server)
|
||||
|
||||
Reference in New Issue
Block a user