summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Potter <agpotter@gmail.com>2014-07-22 22:27:14 -0700
committerAndrew Potter <agpotter@gmail.com>2014-07-22 22:27:14 -0700
commit197cd303799971adfa3f23df8da4c02f61c25526 (patch)
treeb2ab686ebdc69c5744b8ca5f3a3ad4b0ae0ca006 /src
parent94f12b4b8b2543c61b42471f6c140fc4ee10ba8a (diff)
downloadweechat-197cd303799971adfa3f23df8da4c02f61c25526.zip
trigger: refuse triggers with . in their name
Diffstat (limited to 'src')
-rw-r--r--src/plugins/trigger/trigger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c
index ae311f068..b4931c141 100644
--- a/src/plugins/trigger/trigger.c
+++ b/src/plugins/trigger/trigger.c
@@ -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;