mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 15:53:12 +02:00
core, plugins: fix typos in comments on functions, use imperative
This commit is contained in:
@@ -37,9 +37,9 @@ char **trigger_buffer_filters = NULL;
|
||||
|
||||
|
||||
/*
|
||||
* Checks if a trigger matches the filters.
|
||||
* Check if a trigger matches the filters.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: trigger matches the filters
|
||||
* 0: trigger does NOT match the filters
|
||||
*/
|
||||
@@ -78,7 +78,7 @@ trigger_buffer_match_filters (struct t_trigger *trigger)
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets filter for trigger monitor buffer.
|
||||
* Set filter for trigger monitor buffer.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -103,7 +103,7 @@ trigger_buffer_set_filter (const char *filter)
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets title for trigger monitor buffer.
|
||||
* Set title for trigger monitor buffer.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -171,8 +171,7 @@ trigger_buffer_close_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Restores buffer callbacks (input and close) for buffer created by trigger
|
||||
* plugin.
|
||||
* Restore buffer callbacks (input and close) for buffer created by trigger plugin.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -195,7 +194,7 @@ trigger_buffer_set_callbacks (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Opens trigger buffer.
|
||||
* Open trigger buffer.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -302,7 +301,7 @@ trigger_buffer_hashtable_map_cb (void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays a hashtable on trigger buffer.
|
||||
* Display a hashtable on trigger buffer.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -325,9 +324,9 @@ trigger_buffer_display_hashtable (struct t_trigger_context *context,
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays a trigger in trigger buffer.
|
||||
* Display a trigger in trigger buffer.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: the trigger has been displayed
|
||||
* 0: the trigger has NOT been displayed (no buffer, or does not match filter)
|
||||
*/
|
||||
@@ -381,7 +380,7 @@ trigger_buffer_display_trigger (struct t_trigger *trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Ends trigger buffer.
|
||||
* End trigger buffer.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -46,9 +46,9 @@ struct t_hashtable *trigger_callback_hashtable_options_conditions = NULL;
|
||||
|
||||
|
||||
/*
|
||||
* Parses an IRC message.
|
||||
* Parse an IRC message.
|
||||
*
|
||||
* Returns a hashtable with the parsed message, or NULL if error.
|
||||
* Return a hashtable with the parsed message, or NULL if error.
|
||||
*
|
||||
* Note: hashtable must be freed after use.
|
||||
*/
|
||||
@@ -78,9 +78,9 @@ trigger_callback_irc_message_parse (const char *irc_message,
|
||||
}
|
||||
|
||||
/*
|
||||
* Gets the pointer to IRC server with its name.
|
||||
* Get the pointer to IRC server with its name.
|
||||
*
|
||||
* Returns pointer to IRC server, or NULL if not found.
|
||||
* Return pointer to IRC server, or NULL if not found.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -134,7 +134,7 @@ trigger_callback_get_irc_server_channel (const char *irc_server_name,
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets variables common to all triggers in a hashtable:
|
||||
* Set variables common to all triggers in a hashtable:
|
||||
* - tg_trigger_name
|
||||
*/
|
||||
|
||||
@@ -153,9 +153,9 @@ trigger_callback_set_common_vars (struct t_trigger *trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets variables in "extra_vars" hashtable using tags from message.
|
||||
* Set variables in "extra_vars" hashtable using tags from message.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 0: tag "no_trigger" was in tags, callback must NOT be executed
|
||||
* 1: no tag "no_trigger", callback can be executed
|
||||
*/
|
||||
@@ -247,9 +247,9 @@ trigger_callback_set_tags (struct t_gui_buffer *buffer,
|
||||
}
|
||||
|
||||
/*
|
||||
* Checks conditions for a trigger.
|
||||
* Check conditions for a trigger.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: conditions are true (or no condition set in trigger)
|
||||
* 0: conditions are false
|
||||
*/
|
||||
@@ -279,9 +279,9 @@ trigger_callback_check_conditions (struct t_trigger *trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Replaces text using regex.
|
||||
* Replace text using regex.
|
||||
*
|
||||
* Returns: text replaced.
|
||||
* Return: text replaced.
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
@@ -320,9 +320,9 @@ trigger_callback_regex_replace (struct t_trigger_context *context,
|
||||
}
|
||||
|
||||
/*
|
||||
* Translates chars.
|
||||
* Translate chars.
|
||||
*
|
||||
* Returns: text with translated chars.
|
||||
* Return: text with translated chars.
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
@@ -355,7 +355,7 @@ trigger_callback_regex_translate_chars (struct t_trigger_context *context,
|
||||
}
|
||||
|
||||
/*
|
||||
* Executes regex commands.
|
||||
* Execute regex commands.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -491,7 +491,7 @@ trigger_callback_regex (struct t_trigger *trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Executes the trigger command(s).
|
||||
* Execute the trigger command(s).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -550,7 +550,7 @@ trigger_callback_run_command (struct t_trigger *trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Executes a trigger.
|
||||
* Execute a trigger.
|
||||
*
|
||||
* Following actions are executed:
|
||||
* 1. display debug info on trigger buffer
|
||||
@@ -558,7 +558,7 @@ trigger_callback_run_command (struct t_trigger *trigger,
|
||||
* 3. replace text with regex
|
||||
* 4. execute command(s)
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: conditions were true (or no condition set in trigger)
|
||||
* 0: conditions were false
|
||||
*/
|
||||
@@ -1482,7 +1482,7 @@ end:
|
||||
}
|
||||
|
||||
/*
|
||||
* Initializes trigger callback.
|
||||
* Initialize trigger callback.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -1501,7 +1501,7 @@ trigger_callback_init (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Ends trigger callback.
|
||||
* End trigger callback.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
/*
|
||||
* Displays the status of triggers (global status).
|
||||
* Display the status of triggers (global status).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -45,7 +45,7 @@ trigger_command_display_status (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays one trigger (internal function, must not be called directly).
|
||||
* Display one trigger (internal function, must not be called directly).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -237,7 +237,7 @@ trigger_command_display_trigger_internal (const char *name,
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays one trigger.
|
||||
* Display one trigger.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -262,7 +262,7 @@ trigger_command_display_trigger (struct t_trigger *trigger, int verbose)
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays a list of triggers.
|
||||
* Display a list of triggers.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -290,7 +290,7 @@ trigger_command_list (const char *message, int verbose)
|
||||
}
|
||||
|
||||
/*
|
||||
* Sends the list of enabled triggers to the buffer.
|
||||
* Send the list of enabled triggers to the buffer.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -391,7 +391,7 @@ trigger_command_list_buffer (struct t_gui_buffer *buffer,
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays a list of default triggers.
|
||||
* Display a list of default triggers.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -442,7 +442,7 @@ trigger_command_list_default (int verbose)
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays an error if a trigger is running.
|
||||
* Display an error if a trigger is running.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -513,7 +513,7 @@ trigger_command_set_enabled (struct t_trigger *trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Renames a trigger and displays error if the rename is not possible.
|
||||
* Rename a trigger and displays error if the rename is not possible.
|
||||
*
|
||||
* This function is called by commands:
|
||||
* /trigger set OLD name NEW
|
||||
@@ -574,7 +574,7 @@ end:
|
||||
}
|
||||
|
||||
/*
|
||||
* Builds a string with the command to create the trigger.
|
||||
* Build a string with the command to create the trigger.
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
@@ -587,8 +587,7 @@ trigger_command_build_string (const char *format, ...)
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns escaped argument for input by adding a backslash before each double
|
||||
* quote.
|
||||
* Return escaped argument for input by adding a backslash before each double quote.
|
||||
*/
|
||||
|
||||
char *
|
||||
@@ -1250,7 +1249,7 @@ end:
|
||||
}
|
||||
|
||||
/*
|
||||
* Hooks trigger commands.
|
||||
* Hook trigger commands.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
/*
|
||||
* Adds triggers to completion list.
|
||||
* Add triggers to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -59,7 +59,7 @@ trigger_completion_triggers_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds default triggers to completion list.
|
||||
* Add default triggers to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -88,7 +88,7 @@ trigger_completion_triggers_default_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds disabled triggers to completion list.
|
||||
* Add disabled triggers to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -119,7 +119,7 @@ trigger_completion_triggers_disabled_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds enabled triggers to completion list.
|
||||
* Add enabled triggers to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -150,7 +150,7 @@ trigger_completion_triggers_enabled_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds options for triggers to completion list.
|
||||
* Add options for triggers to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -178,7 +178,7 @@ trigger_completion_options_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds value of a trigger option to completion list.
|
||||
* Add value of a trigger option to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -243,7 +243,7 @@ trigger_completion_option_value_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds hooks for triggers to completion list.
|
||||
* Add hooks for triggers to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -271,7 +271,7 @@ trigger_completion_hooks_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds hooks for filtering triggers to completion list.
|
||||
* Add hooks for filtering triggers to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -301,7 +301,7 @@ trigger_completion_hooks_filter_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds a word with quotes around to completion list.
|
||||
* Add a word with quotes around to completion list.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -318,7 +318,7 @@ trigger_completion_add_quoted_word (struct t_gui_completion *completion,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds a default string to completion list, depending on hook type.
|
||||
* Add a default string to completion list, depending on hook type.
|
||||
*
|
||||
* If split is not NULL, the default string found is split using this separator,
|
||||
* and therefore many words can be added to completion list.
|
||||
@@ -382,7 +382,7 @@ trigger_completion_add_default_for_hook (struct t_gui_completion *completion,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds default arguments for hook to completion list.
|
||||
* Add default arguments for hook to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -406,7 +406,7 @@ trigger_completion_hook_arguments_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds default conditions for hook to completion list.
|
||||
* Add default conditions for hook to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -431,7 +431,7 @@ trigger_completion_hook_conditions_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds default regular expression for hook to completion list.
|
||||
* Add default regular expression for hook to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -456,7 +456,7 @@ trigger_completion_hook_regex_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds default command for hook to completion list.
|
||||
* Add default command for hook to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -481,7 +481,7 @@ trigger_completion_hook_command_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds default return code(s) for hook to completion list.
|
||||
* Add default return code(s) for hook to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -504,7 +504,7 @@ trigger_completion_hook_rc_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds default post actions to completion list.
|
||||
* Add default post actions to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -531,7 +531,7 @@ trigger_completion_post_action_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds arguments for commands that add a trigger.
|
||||
* Add arguments for commands that add a trigger.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -602,7 +602,7 @@ trigger_completion_add_arguments_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Hooks completions.
|
||||
* Hook completions.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -337,9 +337,9 @@ trigger_config_change_trigger_command (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates an option for a trigger.
|
||||
* Create an option for a trigger.
|
||||
*
|
||||
* Returns pointer to new option, NULL if error.
|
||||
* Return pointer to new option, NULL if error.
|
||||
*/
|
||||
|
||||
struct t_config_option *
|
||||
@@ -464,7 +464,7 @@ trigger_config_create_trigger_option (const char *trigger_name, int index_option
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates option for a temporary trigger (when reading configuration file).
|
||||
* Create option for a temporary trigger (when reading configuration file).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -483,7 +483,7 @@ trigger_config_create_option_temp (struct t_trigger *temp_trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Uses temporary triggers (created by reading configuration file).
|
||||
* Use temporary triggers (created by reading configuration file).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -541,7 +541,7 @@ trigger_config_use_temp_triggers (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Reads a trigger option in trigger configuration file.
|
||||
* Read a trigger option in trigger configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -613,7 +613,7 @@ trigger_config_trigger_read_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Writes default triggers in trigger configuration file.
|
||||
* Write default triggers in trigger configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -655,7 +655,7 @@ trigger_config_trigger_write_default_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Reloads trigger configuration file.
|
||||
* Reload trigger configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -678,9 +678,9 @@ trigger_config_reload_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Initializes trigger configuration file.
|
||||
* Initialize trigger configuration file.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: OK
|
||||
* 0: error
|
||||
*/
|
||||
@@ -797,7 +797,7 @@ trigger_config_init (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Reads trigger configuration file.
|
||||
* Read trigger configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -813,7 +813,7 @@ trigger_config_read (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Writes trigger configuration file.
|
||||
* Write trigger configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -823,7 +823,7 @@ trigger_config_write (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Frees trigger configuration.
|
||||
* Free trigger configuration.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -89,9 +89,9 @@ int trigger_enabled = 1; /* 0 if triggers are disabled */
|
||||
|
||||
|
||||
/*
|
||||
* Searches for a trigger option name.
|
||||
* Search for a trigger option name.
|
||||
*
|
||||
* Returns index of option in enum t_trigger_option, -1 if not found.
|
||||
* Return index of option in enum t_trigger_option, -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -113,9 +113,9 @@ trigger_search_option (const char *option_name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for trigger hook type.
|
||||
* Search for trigger hook type.
|
||||
*
|
||||
* Returns index of hook type in enum t_trigger_hook_type, -1 if not found.
|
||||
* Return index of hook type in enum t_trigger_hook_type, -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -137,9 +137,9 @@ trigger_search_hook_type (const char *type)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for a regex command.
|
||||
* Search for a regex command.
|
||||
*
|
||||
* Returns index of option in enum t_trigger_regex_command, -1 if not found.
|
||||
* Return index of option in enum t_trigger_regex_command, -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -158,9 +158,9 @@ trigger_search_regex_command (char command)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for trigger return code.
|
||||
* Search for trigger return code.
|
||||
*
|
||||
* Returns index of return code in enum t_trigger_return_code, -1 if not found.
|
||||
* Return index of return code in enum t_trigger_return_code, -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -182,9 +182,9 @@ trigger_search_return_code (const char *return_code)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for trigger post action.
|
||||
* Search for trigger post action.
|
||||
*
|
||||
* Returns index of post action in enum t_trigger_post_action, -1 if not found.
|
||||
* Return index of post action in enum t_trigger_post_action, -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -206,9 +206,9 @@ trigger_search_post_action (const char *post_action)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for a trigger by name.
|
||||
* Search for a trigger by name.
|
||||
*
|
||||
* Returns pointer to trigger found, NULL if not found.
|
||||
* Return pointer to trigger found, NULL if not found.
|
||||
*/
|
||||
|
||||
struct t_trigger *
|
||||
@@ -231,9 +231,9 @@ trigger_search (const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for a trigger with a pointer to a trigger option.
|
||||
* Search for a trigger with a pointer to a trigger option.
|
||||
*
|
||||
* Returns pointer to trigger found, NULL if not found.
|
||||
* Return pointer to trigger found, NULL if not found.
|
||||
*/
|
||||
|
||||
struct t_trigger *
|
||||
@@ -269,7 +269,7 @@ trigger_search_with_option (struct t_config_option *option)
|
||||
}
|
||||
|
||||
/*
|
||||
* Unhooks things hooked in a trigger.
|
||||
* Unhook things hooked in a trigger.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -297,7 +297,7 @@ trigger_unhook (struct t_trigger *trigger)
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates hook(s) in a trigger.
|
||||
* Create hook(s) in a trigger.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -605,7 +605,7 @@ trigger_hook (struct t_trigger *trigger)
|
||||
}
|
||||
|
||||
/*
|
||||
* Frees all the regex in a trigger.
|
||||
* Free all the regex in a trigger.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -637,9 +637,9 @@ trigger_regex_free (int *regex_count, struct t_trigger_regex **regex)
|
||||
}
|
||||
|
||||
/*
|
||||
* Splits the regex in structures, with regex and replacement text.
|
||||
* Split the regex in structures, with regex and replacement text.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 0: OK
|
||||
* -1: format error
|
||||
* -2: regex compilation error
|
||||
@@ -835,7 +835,7 @@ end:
|
||||
}
|
||||
|
||||
/*
|
||||
* Splits command of a trigger.
|
||||
* Split command of a trigger.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -868,11 +868,11 @@ trigger_split_command (const char *command,
|
||||
}
|
||||
|
||||
/*
|
||||
* Checks if a trigger name is valid:
|
||||
* Check if a trigger name is valid:
|
||||
* - it must not start with "-"
|
||||
* - it must not have any space/period.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: name is valid
|
||||
* 0: name is invalid
|
||||
*/
|
||||
@@ -896,9 +896,9 @@ trigger_name_valid (const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocates and initializes new trigger structure.
|
||||
* Allocate and initializes new trigger structure.
|
||||
*
|
||||
* Returns pointer to new trigger, NULL if error.
|
||||
* Return pointer to new trigger, NULL if error.
|
||||
*/
|
||||
|
||||
struct t_trigger *
|
||||
@@ -939,7 +939,7 @@ trigger_alloc (const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for position of trigger in list (to keep triggers sorted by name).
|
||||
* Search for position of trigger in list (to keep triggers sorted by name).
|
||||
*/
|
||||
|
||||
struct t_trigger *
|
||||
@@ -959,7 +959,7 @@ trigger_find_pos (struct t_trigger *trigger, struct t_trigger *list_triggers)
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds a trigger in a linked list.
|
||||
* Add a trigger in a linked list.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -995,9 +995,9 @@ trigger_add (struct t_trigger *trigger,
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates a new trigger with options.
|
||||
* Create a new trigger with options.
|
||||
*
|
||||
* Returns pointer to new trigger, NULL if error.
|
||||
* Return pointer to new trigger, NULL if error.
|
||||
*/
|
||||
|
||||
struct t_trigger *
|
||||
@@ -1038,9 +1038,9 @@ trigger_new_with_options (const char *name, struct t_config_option **options)
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates a new trigger.
|
||||
* Create a new trigger.
|
||||
*
|
||||
* Returns pointer to new trigger, NULL if error.
|
||||
* Return pointer to new trigger, NULL if error.
|
||||
*/
|
||||
|
||||
struct t_trigger *
|
||||
@@ -1099,7 +1099,7 @@ trigger_new (const char *name, const char *enabled, const char *hook,
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates default triggers.
|
||||
* Create default triggers.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -1122,9 +1122,9 @@ trigger_create_default (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Renames a trigger.
|
||||
* Rename a trigger.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: OK
|
||||
* 0: error (trigger not renamed)
|
||||
*/
|
||||
@@ -1178,9 +1178,9 @@ trigger_rename (struct t_trigger *trigger, const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Copies a trigger.
|
||||
* Copy a trigger.
|
||||
*
|
||||
* Returns a pointer to the new trigger, NULL if error.
|
||||
* Return a pointer to the new trigger, NULL if error.
|
||||
*/
|
||||
|
||||
struct t_trigger *
|
||||
@@ -1205,7 +1205,7 @@ trigger_copy (struct t_trigger *trigger, const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Deletes a trigger.
|
||||
* Delete a trigger.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -1242,7 +1242,7 @@ trigger_free (struct t_trigger *trigger)
|
||||
}
|
||||
|
||||
/*
|
||||
* Deletes all triggers.
|
||||
* Delete all triggers.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -1255,7 +1255,7 @@ trigger_free_all (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Prints trigger infos in WeeChat log file (usually for crash dump).
|
||||
* Print trigger infos in WeeChat log file (usually for crash dump).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -1362,7 +1362,7 @@ trigger_debug_dump_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Initializes trigger plugin.
|
||||
* Initialize trigger plugin.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -1398,7 +1398,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
}
|
||||
|
||||
/*
|
||||
* Ends trigger plugin.
|
||||
* End trigger plugin.
|
||||
*/
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user