mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
trigger: add support for one-time triggers (closes #399)
This commit is contained in:
@@ -64,6 +64,18 @@
|
||||
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; \
|
||||
} \
|
||||
return __rc;
|
||||
|
||||
extern int trigger_callback_signal_cb (void *data, const char *signal,
|
||||
|
||||
Reference in New Issue
Block a user