1
0
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:
Sebastien Helleu
2011-04-16 10:47:18 +02:00
parent 619f470f9f
commit 7426569d86
13 changed files with 122 additions and 12 deletions
+7
View File
@@ -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)