summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger-callback.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-08-09 21:05:34 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-08-09 21:05:34 +0200
commit810077fc12401eba106bd8fa90128bea790b1d73 (patch)
tree48a91a88ca7fc9838e6a4cd34579adc7acf1b049 /src/plugins/trigger/trigger-callback.h
parent9d53fe9b0fcb1509aa293bca0cf1cf887f894604 (diff)
parent1d3a75333eb1b22fef74b8e0e32cdc9a85e97b00 (diff)
downloadweechat-810077fc12401eba106bd8fa90128bea790b1d73.zip
Merge remote-tracking branch 'origin/pr/509'
Diffstat (limited to 'src/plugins/trigger/trigger-callback.h')
-rw-r--r--src/plugins/trigger/trigger-callback.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger-callback.h b/src/plugins/trigger/trigger-callback.h
index 9f7fb781a..44d6c3694 100644
--- a/src/plugins/trigger/trigger-callback.h
+++ b/src/plugins/trigger/trigger-callback.h
@@ -63,6 +63,21 @@
if (extra_vars) \
weechat_hashtable_free (extra_vars); \
trigger->hook_running = 0; \
+ switch (weechat_config_integer ( \
+ trigger->options[TRIGGER_OPTION_ONCE_ACTION])) \
+ { \
+ case TRIGGER_ONCE_DISABLE: \
+ weechat_config_option_set ( \
+ trigger->options[TRIGGER_OPTION_ENABLED], \
+ "off", 1); \
+ break; \
+ case TRIGGER_ONCE_DELETE: \
+ trigger_free (trigger); \
+ break; \
+ default: \
+ /* do nothing in the other cases */ \
+ break; \
+ } \
return __rc;
extern int trigger_callback_signal_cb (const void *pointer, void *data,