1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

trigger: add option trigger.look.enabled (can be changed with /trigger enable|disable|toggle)

This commit is contained in:
Sebastien Helleu
2014-02-14 18:35:29 +01:00
parent f52770137f
commit 8e63a9a52f
6 changed files with 102 additions and 40 deletions
+3 -1
View File
@@ -75,6 +75,8 @@ int triggers_count = 0; /* number of triggers */
struct t_trigger *triggers_temp = NULL; /* first temporary trigger */
struct t_trigger *last_trigger_temp = NULL; /* last temporary trigger */
int trigger_enabled = 1; /* 0 if triggers are disabled */
/*
* Searches for a trigger option name.
@@ -874,7 +876,7 @@ trigger_new (const char *name, const char *enabled, const char *hook,
for (i = 0; i < TRIGGER_NUM_OPTIONS; i++)
{
option[i] = trigger_config_create_option (name, i, value[i]);
option[i] = trigger_config_create_trigger_option (name, i, value[i]);
}
new_trigger = trigger_new_with_options (name, option);