1
0
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:
Andrew Potter
2014-07-22 22:27:14 -07:00
parent 94f12b4b8b
commit 197cd30379
+3
View File
@@ -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;