mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 23:36:37 +02:00
trigger: refuse triggers with . in their name
This commit is contained in:
@@ -706,6 +706,9 @@ trigger_name_valid (const char *name)
|
||||
/* no spaces allowed */
|
||||
if (strchr (name, ' '))
|
||||
return 0;
|
||||
/* no periods allowed since it is saved via wee_config option name */
|
||||
if (strchr (name, '.'))
|
||||
return 0;
|
||||
|
||||
/* name is valid */
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user