diff options
author | Andrew Potter <agpotter@gmail.com> | 2014-07-22 22:27:14 -0700 |
---|---|---|
committer | Andrew Potter <agpotter@gmail.com> | 2014-07-22 22:27:14 -0700 |
commit | 197cd303799971adfa3f23df8da4c02f61c25526 (patch) | |
tree | b2ab686ebdc69c5744b8ca5f3a3ad4b0ae0ca006 /src | |
parent | 94f12b4b8b2543c61b42471f6c140fc4ee10ba8a (diff) | |
download | weechat-197cd303799971adfa3f23df8da4c02f61c25526.zip |
trigger: refuse triggers with . in their name
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/trigger/trigger.c | 3 |
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; |