1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00

core, plugins: fix typos in comments on functions, use imperative

This commit is contained in:
Sébastien Helleu
2026-03-23 20:45:36 +01:00
parent d34eb40187
commit f53e7fb9ef
342 changed files with 6669 additions and 6729 deletions
+14 -17
View File
@@ -38,7 +38,7 @@
/*
* Returns content of bar item "buffer_plugin": bar item with buffer plugin.
* Return content of bar item "buffer_plugin": bar item with buffer plugin.
*/
char *
@@ -112,7 +112,7 @@ irc_bar_item_buffer_plugin (const void *pointer, void *data,
}
/*
* Returns content of bar item "buffer_name": bar item with buffer name.
* Return content of bar item "buffer_name": bar item with buffer name.
*/
char *
@@ -199,7 +199,7 @@ irc_bar_item_buffer_name_content (struct t_gui_buffer *buffer, int short_name)
}
/*
* Returns content of bar item "buffer_name": bar item with buffer name.
* Return content of bar item "buffer_name": bar item with buffer name.
*/
char *
@@ -220,8 +220,7 @@ irc_bar_item_buffer_name (const void *pointer, void *data,
}
/*
* Returns content of bar item "buffer_short_name": bar item with buffer short
* name.
* Return content of bar item "buffer_short_name": bar item with buffer short name.
*/
char *
@@ -242,8 +241,7 @@ irc_bar_item_buffer_short_name (const void *pointer, void *data,
}
/*
* Returns content of bar item "irc_channel": bar item with channel name
* (without modes).
* Return content of bar item "irc_channel": bar item with channel name (without modes).
*/
char *
@@ -322,8 +320,7 @@ irc_bar_item_channel (const void *pointer, void *data,
}
/*
* Returns content of bar item "irc_nick": bar item with nick name
* (without modes).
* Return content of bar item "irc_nick": bar item with nick name (without modes).
*/
char *
@@ -357,7 +354,7 @@ irc_bar_item_nick (const void *pointer, void *data,
}
/*
* Returns content of bar item "irc_host": bar item with self host.
* Return content of bar item "irc_host": bar item with self host.
*/
char *
@@ -386,7 +383,7 @@ irc_bar_item_host (const void *pointer, void *data,
}
/*
* Returns content of bar item "irc_nick_host": bar item with nick and host.
* Return content of bar item "irc_nick_host": bar item with nick and host.
*/
char *
@@ -422,7 +419,7 @@ irc_bar_item_nick_host (const void *pointer, void *data,
}
/*
* Returns content of bar item "lag": bar item with lag value.
* Return content of bar item "lag": bar item with lag value.
*/
char *
@@ -463,7 +460,7 @@ irc_bar_item_lag (const void *pointer, void *data,
}
/*
* Returns content of bar item "tls_version": bar item with TLS version value.
* Return content of bar item "tls_version": bar item with TLS version value.
*/
char *
@@ -531,7 +528,7 @@ irc_bar_item_tls_version (const void *pointer, void *data,
}
/*
* Returns content of bar item "nick_modes": bar item with nick modes.
* Return content of bar item "nick_modes": bar item with nick modes.
*/
char *
@@ -566,7 +563,7 @@ irc_bar_item_nick_modes (const void *pointer, void *data,
}
/*
* Returns content of bar item "nick_prefix": bar item with nick prefix.
* Return content of bar item "nick_prefix": bar item with nick prefix.
*/
char *
@@ -703,7 +700,7 @@ irc_bar_item_buffer_switch (const void *pointer, void *data,
}
/*
* Updates bar items with the channel.
* Update bar items with the channel.
*/
void
@@ -715,7 +712,7 @@ irc_bar_item_update_channel (void)
}
/*
* Initializes IRC bar items.
* Initialize IRC bar items.
*/
void
+15 -15
View File
@@ -38,9 +38,9 @@
/*
* Searches a batch reference.
* Search a batch reference.
*
* Returns pointer to batch, NULL if not found.
* Return pointer to batch, NULL if not found.
*/
struct t_irc_batch *
@@ -63,7 +63,7 @@ irc_batch_search (struct t_irc_server *server, const char *reference)
}
/*
* Generates a random batch reference with `size` chars (the next one is the
* Generate a random batch reference with `size` chars (the next one is the
* final '\0', so the string must be at least size + 1 bytes long).
*/
@@ -88,7 +88,7 @@ irc_batch_generate_random_ref (char *string, int size)
}
/*
* Adds a batch to list of batched events.
* Add a batch to list of batched events.
*/
void
@@ -104,9 +104,9 @@ irc_batch_add_to_list (struct t_irc_server *server, struct t_irc_batch *batch)
}
/*
* Starts a batch.
* Start a batch.
*
* Returns pointer to new batch, NULL if error.
* Return pointer to new batch, NULL if error.
*/
struct t_irc_batch *
@@ -144,9 +144,9 @@ irc_batch_start_batch (struct t_irc_server *server, const char *reference,
}
/*
* Adds an IRC message to a batch reference.
* Add an IRC message to a batch reference.
*
* Returns:
* Return:
* 1: OK, message added
* 0: error, message not added
*/
@@ -177,7 +177,7 @@ irc_batch_add_message (struct t_irc_server *server, const char *reference,
}
/*
* Frees a batch.
* Free a batch.
*/
void
@@ -204,7 +204,7 @@ irc_batch_free (struct t_irc_server *server, struct t_irc_batch *batch)
}
/*
* Frees all batches from server.
* Free all batches from server.
*/
void
@@ -217,7 +217,7 @@ irc_batch_free_all (struct t_irc_server *server)
}
/*
* Processes messages in a batch.
* Process messages in a batch.
*/
void
@@ -302,7 +302,7 @@ irc_batch_process_messages (struct t_irc_server *server,
}
/*
* Ends a batch reference.
* End a batch reference.
*/
void
@@ -357,7 +357,7 @@ irc_batch_end_batch (struct t_irc_server *server, const char *reference)
}
/*
* Processes multiline batch: convert multiple messages into a single one,
* Process multiline batch: convert multiple messages into a single one,
* that can include newline chars ("\r" that are converted later to "\n").
*
* Parameter "target" is the batch target (channel or nick name).
@@ -506,7 +506,7 @@ irc_batch_modifier_cb (const void *pointer, void *data,
}
/*
* Returns hdata for batch.
* Return hdata for batch.
*/
struct t_hdata *
@@ -538,7 +538,7 @@ irc_batch_hdata_batch_cb (const void *pointer, void *data,
}
/*
* Prints batch infos in WeeChat log file (usually for crash dump).
* Print batch infos in WeeChat log file (usually for crash dump).
*/
void
+9 -9
View File
@@ -39,7 +39,7 @@
/*
* Gets IRC server and channel pointers with a buffer pointer (buffer may be a
* Get IRC server and channel pointers with a buffer pointer (buffer may be a
* server or a channel).
*/
@@ -95,7 +95,7 @@ irc_buffer_get_server_and_channel (struct t_gui_buffer *buffer,
}
/*
* Builds buffer name with a server and a channel.
* Build buffer name with a server and a channel.
*
* Note: result must be freed after use.
*/
@@ -131,7 +131,7 @@ end:
}
/*
* Closes all channels/privates of a given server.
* Close all channels/privates of a given server.
*/
void
@@ -267,7 +267,7 @@ irc_buffer_close_cb (const void *pointer, void *data,
* nicklist).
* The "casemapping" of server is used in comparison.
*
* Returns:
* Return:
* -1: nick1 < nick2
* 0: nick1 == nick2
* 1: nick2 > nick2
@@ -301,9 +301,9 @@ irc_buffer_nickcmp_cb (const void *pointer, void *data,
}
/*
* Searches for the server buffer with the lowest number.
* Search for the server buffer with the lowest number.
*
* Returns pointer to buffer found, NULL if not found.
* Return pointer to buffer found, NULL if not found.
*/
struct t_gui_buffer *
@@ -333,10 +333,10 @@ irc_buffer_search_server_lowest_number (void)
}
/*
* Searches for the private buffer with the lowest number.
* Search for the private buffer with the lowest number.
* If server is not NULL, searches only for this server.
*
* Returns pointer to buffer found, NULL if not found.
* Return pointer to buffer found, NULL if not found.
*/
struct t_gui_buffer *
@@ -375,7 +375,7 @@ irc_buffer_search_private_lowest_number (struct t_irc_server *server)
}
/*
* Moves new channel/pv or list buffer near server.
* Move new channel/pv or list buffer near server.
*
* Parameters:
* list_buffer: 1 if it is a /list buffer, 0 otherwise
+52 -53
View File
@@ -56,9 +56,9 @@ char *irc_channel_get_buffer_input_prompt (struct t_irc_server *server,
/*
* Checks if a channel pointer is valid for a server.
* Check if a channel pointer is valid for a server.
*
* Returns:
* Return:
* 1: channel exists for server
* 0: channel does not exist for server
*/
@@ -83,9 +83,9 @@ irc_channel_valid (struct t_irc_server *server, struct t_irc_channel *channel)
}
/*
* Searches for a channel by name.
* Search for a channel by name.
*
* Returns pointer to channel found, NULL if not found.
* Return pointer to channel found, NULL if not found.
*/
struct t_irc_channel *
@@ -106,9 +106,9 @@ irc_channel_search (struct t_irc_server *server, const char *channel_name)
}
/*
* Searches for a channel buffer by channel name.
* Search for a channel buffer by channel name.
*
* Returns pointer to buffer found, NULL if not found.
* Return pointer to buffer found, NULL if not found.
*/
struct t_gui_buffer *
@@ -159,7 +159,7 @@ irc_channel_search_buffer (struct t_irc_server *server, int channel_type,
}
/*
* Applies properties to a buffer.
* Apply properties to a buffer.
*/
void
@@ -177,7 +177,7 @@ irc_channel_apply_props (void *data,
}
/*
* Creates a buffer for a channel.
* Create a buffer for a channel.
*/
struct t_gui_buffer *
@@ -410,9 +410,9 @@ end:
}
/*
* Creates a new channel in a server.
* Create a new channel in a server.
*
* Returns pointer to new channel, NULL if error.
* Return pointer to new channel, NULL if error.
*/
struct t_irc_channel *
@@ -510,7 +510,7 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
}
/*
* Renames a private buffer.
* Rename a private buffer.
*/
void
@@ -544,7 +544,7 @@ irc_channel_pv_rename (struct t_irc_server *server,
}
/*
* Adds groups in nicklist for a channel.
* Add groups in nicklist for a channel.
*/
void
@@ -573,7 +573,7 @@ irc_channel_add_nicklist_groups (struct t_irc_server *server,
}
/*
* Sets modes on channel buffer.
* Set modes on channel buffer.
*/
void
@@ -614,7 +614,7 @@ irc_channel_set_buffer_modes (struct t_irc_server *server,
}
/*
* Gets input prompt for a channel (channel is optional: when channel is not
* Get input prompt for a channel (channel is optional: when channel is not
* given, the prefix for nick is not returned).
*
* Note: result must be freed after use.
@@ -670,7 +670,7 @@ irc_channel_get_buffer_input_prompt (struct t_irc_server *server,
}
/*
* Sets input prompt on channel buffer.
* Set input prompt on channel buffer.
*/
void
@@ -688,7 +688,7 @@ irc_channel_set_buffer_input_prompt (struct t_irc_server *server,
}
/*
* Sets the buffer title with the channel topic.
* Set the buffer title with the channel topic.
*/
void
@@ -711,7 +711,7 @@ irc_channel_set_buffer_title (struct t_irc_channel *channel)
}
/*
* Sets topic for a channel.
* Set topic for a channel.
*/
void
@@ -747,7 +747,7 @@ irc_channel_set_topic (struct t_irc_channel *channel, const char *topic)
}
/*
* Sets topic of all private buffers with a nick.
* Set topic of all private buffers with a nick.
*/
void
@@ -770,7 +770,7 @@ irc_channel_set_topic_private_buffers (struct t_irc_server *server,
}
/*
* Sets modes for a channel.
* Set modes for a channel.
*/
void
@@ -781,9 +781,9 @@ irc_channel_set_modes (struct t_irc_channel *channel, const char *modes)
}
/*
* Checks if a string is a valid channel name.
* Check if a string is a valid channel name.
*
* Returns:
* Return:
* 1: string is a channel name
* 0: string is not a channel name
*/
@@ -806,10 +806,10 @@ irc_channel_is_channel (struct t_irc_server *server, const char *string)
}
/*
* Returns a string with a channel type to add in front of a channel name,
* Return a string with a channel type to add in front of a channel name,
* if it doesn't have a valid channel type for the given server.
*
* It returns an empty string if the channel already has a valid channel type,
* Return an empty string if the channel already has a valid channel type,
* or if the option irc.look.join_auto_add_chantype is off.
*/
@@ -843,7 +843,7 @@ irc_channel_get_auto_chantype (struct t_irc_server *server,
}
/*
* Removes account for all nicks on a channel.
* Remove account for all nicks on a channel.
*/
void
@@ -867,7 +867,7 @@ irc_channel_remove_account (struct t_irc_server *server,
}
/*
* Removes away for all nicks on a channel.
* Remove away for all nicks on a channel.
*/
void
@@ -887,7 +887,7 @@ irc_channel_remove_away (struct t_irc_server *server,
}
/*
* Checks for WHOX information on a channel.
* Check for WHOX information on a channel.
*/
void
@@ -925,7 +925,7 @@ irc_channel_check_whox (struct t_irc_server *server,
}
/*
* Sets/unsets away status for a channel.
* Set/unset away status for a channel.
*/
void
@@ -944,7 +944,7 @@ irc_channel_set_away (struct t_irc_server *server,
}
/*
* Adds a nick speaking on a channel.
* Add a nick speaking on a channel.
*/
void
@@ -984,7 +984,7 @@ irc_channel_nick_speaking_add_to_list (struct t_irc_channel *channel,
}
/*
* Adds a nick speaking on a channel.
* Add a nick speaking on a channel.
*/
void
@@ -1002,7 +1002,7 @@ irc_channel_nick_speaking_add (struct t_irc_channel *channel,
}
/*
* Renames a nick speaking on a channel.
* Rename a nick speaking on a channel.
*/
void
@@ -1026,7 +1026,7 @@ irc_channel_nick_speaking_rename (struct t_irc_channel *channel,
}
/*
* Renames a nick speaking on a channel if it is already in list.
* Rename a nick speaking on a channel if it is already in list.
*/
void
@@ -1058,9 +1058,9 @@ irc_channel_nick_speaking_rename_if_present (struct t_irc_server *server,
}
/*
* Searches for a nick speaking time on a channel.
* Search for a nick speaking time on a channel.
*
* Returns pointer to nick speaking time, NULL if not found.
* Return pointer to nick speaking time, NULL if not found.
*/
struct t_irc_channel_speaking *
@@ -1094,7 +1094,7 @@ irc_channel_nick_speaking_time_search (struct t_irc_server *server,
}
/*
* Frees a nick speaking on a channel.
* Free a nick speaking on a channel.
*/
void
@@ -1121,7 +1121,7 @@ irc_channel_nick_speaking_time_free (struct t_irc_channel *channel,
}
/*
* Frees all nick speaking on a channel.
* Free all nick speaking on a channel.
*/
void
@@ -1135,7 +1135,7 @@ irc_channel_nick_speaking_time_free_all (struct t_irc_channel *channel)
}
/*
* Removes old nicks speaking.
* Remove old nicks speaking.
*/
void
@@ -1157,7 +1157,7 @@ irc_channel_nick_speaking_time_remove_old (struct t_irc_channel *channel)
}
/*
* Adds a nick speaking time on a channel.
* Add a nick speaking time on a channel.
*/
void
@@ -1191,7 +1191,7 @@ irc_channel_nick_speaking_time_add (struct t_irc_server *server,
}
/*
* Renames a nick speaking time on a channel.
* Rename a nick speaking time on a channel.
*/
void
@@ -1215,8 +1215,7 @@ irc_channel_nick_speaking_time_rename (struct t_irc_server *server,
}
/*
* Adds a nick in hashtable "join_smart_filtered" (creates the hashtable if
* needed).
* Add a nick in hashtable "join_smart_filtered" (creates the hashtable if needed).
*/
void
@@ -1244,7 +1243,7 @@ irc_channel_join_smart_filtered_add (struct t_irc_channel *channel,
}
/*
* Renames a nick in hashtable "join_smart_filtered".
* Rename a nick in hashtable "join_smart_filtered".
*/
void
@@ -1270,7 +1269,7 @@ irc_channel_join_smart_filtered_rename (struct t_irc_channel *channel,
}
/*
* Removes a nick in hashtable "join_smart_filtered".
* Remove a nick in hashtable "join_smart_filtered".
*/
void
@@ -1285,7 +1284,7 @@ irc_channel_join_smart_filtered_remove (struct t_irc_channel *channel,
}
/*
* Unmasks a smart filtered join if nick is in hashtable "join_smart_filtered",
* Unmask a smart filtered join if nick is in hashtable "join_smart_filtered",
* then removes nick from hashtable.
*/
@@ -1476,7 +1475,7 @@ irc_channel_join_smart_filtered_unmask (struct t_irc_channel *channel,
}
/*
* Rejoins a channel (for example after kick).
* Rejoin a channel (for example after kick).
*/
void
@@ -1543,7 +1542,7 @@ irc_channel_autorejoin_cb (const void *pointer, void *data,
}
/*
* Displays a message in pv buffer if nick is back and if private has flag
* Display a message in pv buffer if nick is back and if private has flag
* "has_quit_server".
*/
@@ -1596,7 +1595,7 @@ irc_channel_display_nick_back_in_pv (struct t_irc_server *server,
}
/*
* Sets state for modelists in a channel.
* Set state for modelists in a channel.
*/
void
@@ -1612,7 +1611,7 @@ irc_channel_modelist_set_state (struct t_irc_channel *channel, int state)
}
/*
* Frees a channel and remove it from channels list.
* Free a channel and remove it from channels list.
*/
void
@@ -1662,7 +1661,7 @@ irc_channel_free (struct t_irc_server *server, struct t_irc_channel *channel)
}
/*
* Frees all channels for a server.
* Free all channels for a server.
*/
void
@@ -1675,7 +1674,7 @@ irc_channel_free_all (struct t_irc_server *server)
}
/*
* Returns hdata for channel.
* Return hdata for channel.
*/
struct t_hdata *
@@ -1727,7 +1726,7 @@ irc_channel_hdata_channel_cb (const void *pointer, void *data,
}
/*
* Returns hdata for channel_speaking.
* Return hdata for channel_speaking.
*/
struct t_hdata *
@@ -1753,9 +1752,9 @@ irc_channel_hdata_channel_speaking_cb (const void *pointer, void *data,
}
/*
* Adds a channel in an infolist.
* Add a channel in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1864,7 +1863,7 @@ irc_channel_add_to_infolist (struct t_infolist *infolist,
}
/*
* Prints channel infos in WeeChat log file (usually for crash dump).
* Print channel infos in WeeChat log file (usually for crash dump).
*/
void
+16 -16
View File
@@ -88,9 +88,9 @@ char *irc_color_string_decoded[32];
/*
* Converts a RGB color to terminal color.
* Convert a RGB color to terminal color.
*
* Returns a terminal color (between 0 and 255), -1 if error.
* Return a terminal color (between 0 and 255), -1 if error.
*/
int
@@ -125,9 +125,9 @@ irc_color_convert_rgb2term (long rgb)
}
/*
* Converts a RGB color to IRC color.
* Convert a RGB color to IRC color.
*
* Returns a IRC color number (between 0 and 15), -1 if error.
* Return a IRC color number (between 0 and 15), -1 if error.
*/
int
@@ -166,9 +166,9 @@ irc_color_convert_rgb2irc (long rgb)
}
/*
* Converts a terminal color to IRC color.
* Convert a terminal color to IRC color.
*
* Returns a IRC color number (between 0 and 15), -1 if error.
* Return a IRC color number (between 0 and 15), -1 if error.
*/
int
@@ -200,7 +200,7 @@ irc_color_convert_term2irc (int color)
}
/*
* Replaces IRC colors by WeeChat colors.
* Replace IRC colors by WeeChat colors.
*
* If keep_colors == 0: removes any color/style in message otherwise keeps
* colors.
@@ -501,7 +501,7 @@ irc_color_decode (const char *string, int keep_colors)
}
/*
* Replaces IRC colors by WeeChat colors and returns a pointer to an allocated
* Replace IRC colors by WeeChat colors and return a pointer to an allocated
* string that doesn't need to be freed by the caller.
*
* If keep_colors == 0: removes any color/style in message otherwise keeps
@@ -521,7 +521,7 @@ irc_color_decode_const (const char *string, int keep_colors)
}
/*
* Replaces color codes in command line by IRC color codes.
* Replace color codes in command line by IRC color codes.
*
* If keep_colors == 0, remove any color/style in message, otherwise keeps
* colors.
@@ -697,7 +697,7 @@ irc_color_encode (const char *string, int keep_colors)
}
/*
* Replaces ANSI colors by IRC colors (or removes them).
* Replace ANSI colors by IRC colors (or removes them).
*
* This callback is called by irc_color_decode_ansi, it must not be called
* directly.
@@ -982,7 +982,7 @@ end:
}
/*
* Replaces ANSI colors by IRC colors.
* Replace ANSI colors by IRC colors.
*
* If keep_colors == 0: removes any color/style in message otherwise keeps
* colors.
@@ -1062,7 +1062,7 @@ irc_color_modifier_cb (const void *pointer, void *data,
}
/*
* Returns color name for tags (replace "," by ":").
* Return color name for tags (replace "," by ":").
*
* Note: result must be freed after use.
*/
@@ -1077,9 +1077,9 @@ irc_color_for_tags (const char *color)
}
/*
* Adds mapping between IRC color codes and WeeChat color names in an infolist.
* Add mapping between IRC color codes and WeeChat color names in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1111,7 +1111,7 @@ irc_color_weechat_add_to_infolist (struct t_infolist *infolist)
}
/*
* Initializes IRC colors.
* Initialize IRC colors.
*/
void
@@ -1122,7 +1122,7 @@ irc_color_init (void)
}
/*
* Ends IRC colors.
* End IRC colors.
*/
void
+104 -107
View File
@@ -59,7 +59,7 @@
/*
* Sends mode change for many nicks on a channel.
* Send mode change for many nicks on a channel.
*
* Argument "set" is "+" or "-", mode can be "o", "h", "v", or any other mode
* supported by server.
@@ -223,7 +223,7 @@ irc_command_mode_nicks (struct t_irc_server *server,
}
/*
* Returns arguments with ranges of numbers converted to individual numbers.
* Return arguments with ranges of numbers converted to individual numbers.
* Arguments that are not range (format: "N1-N2") are kept as-is.
*
* For example: ["2" "5-8" "abc"] -> ["2" "5" "6" "7" "8" "abc"]
@@ -294,7 +294,7 @@ irc_command_mode_masks_convert_ranges (char **argv, int arg_start)
}
/*
* Sends mode change for many masks on a channel.
* Send mode change for many masks on a channel.
*
* Argument "set" is "+" or "-", mode can be "b", "q", or any other mode
* supported by server.
@@ -431,7 +431,7 @@ irc_command_mode_masks (struct t_irc_server *server,
}
/*
* Sends a CTCP ACTION to a channel for a single message
* Send a CTCP ACTION to a channel for a single message
* (internal function called by irc_command_me_channel).
*/
@@ -478,7 +478,7 @@ irc_command_me_channel_message (struct t_irc_server *server,
}
/*
* Sends a CTCP ACTION to a channel.
* Send a CTCP ACTION to a channel.
*/
void
@@ -508,7 +508,7 @@ irc_command_me_channel (struct t_irc_server *server,
}
/*
* Sends a CTCP ACTION to all channels of a server.
* Send a CTCP ACTION to all channels of a server.
*/
void
@@ -525,7 +525,7 @@ irc_command_me_all_channels (struct t_irc_server *server, const char *arguments)
}
/*
* Callback for command "/action": sends an action message to a nick or channel.
* Callback for command "/action": send an action message to a nick or channel.
*/
IRC_COMMAND_CALLBACK(action)
@@ -594,7 +594,7 @@ IRC_COMMAND_CALLBACK(action)
}
/*
* Callback for command "/admin": finds information about the administrator of
* Callback for command "/admin": find information about the administrator of
* the server.
*/
@@ -623,7 +623,7 @@ IRC_COMMAND_CALLBACK(admin)
}
/*
* Executes a command on a list of IRC buffers.
* Execute a command on a list of IRC buffers.
*/
void
@@ -687,7 +687,7 @@ irc_command_exec_buffers (struct t_weelist *list_buffers,
}
/*
* Executes a command on all channels (or queries).
* Execute a command on all channels (or queries).
*
* If server is NULL, executes command on all channels of all connected servers.
* Special variables $server/$channel/$nick are replaced in command.
@@ -785,7 +785,7 @@ irc_command_exec_all_channels (struct t_irc_server *server,
}
/*
* Callback for command "/allchan": executes a command on all channels of all
* Callback for command "/allchan": execute a command on all channels of all
* connected servers.
*/
@@ -870,7 +870,7 @@ IRC_COMMAND_CALLBACK(allchan)
}
/*
* Callback for command "/allpv": executes a command on all privates of all
* Callback for command "/allpv": execute a command on all privates of all
* connected servers.
*/
@@ -941,7 +941,7 @@ IRC_COMMAND_CALLBACK(allpv)
}
/*
* Executes a command on all connected channels.
* Execute a command on all connected channels.
*
* Special variables $server/$channel/$nick are replaced in command.
*/
@@ -1010,7 +1010,7 @@ irc_command_exec_all_servers (int inclusive, const char *str_servers, const char
}
/*
* Callback for command "/allserv": executes a command on all connected servers.
* Callback for command "/allserv": execute a command on all connected servers.
*/
IRC_COMMAND_CALLBACK(allserv)
@@ -1057,7 +1057,7 @@ IRC_COMMAND_CALLBACK(allserv)
}
/*
* Callback for command "/auth": authenticates with SASL.
* Callback for command "/auth": authenticate with SASL.
*/
IRC_COMMAND_CALLBACK(auth)
@@ -1311,7 +1311,7 @@ end:
}
/*
* Displays away on all channels of all servers.
* Display away on all channels of all servers.
*/
void
@@ -1342,7 +1342,7 @@ irc_command_display_away (struct t_irc_server *server, const char *string1,
}
/*
* Toggles away status for one server.
* Toggle away status for one server.
*/
void
@@ -1479,7 +1479,7 @@ irc_command_away_server (struct t_irc_server *server, const char *arguments,
}
/*
* Callback for command "/away": toggles away status.
* Callback for command "/away": toggle away status.
*/
IRC_COMMAND_CALLBACK(away)
@@ -1550,7 +1550,7 @@ irc_command_run_away (const void *pointer, void *data,
}
/*
* Sends a ban/unban command to the server, as "MODE [+/-]b nick".
* Send a ban/unban command to the server, as "MODE [+/-]b nick".
*
* Argument "mode" can be "+b" for ban or "-b" for unban.
*/
@@ -1588,7 +1588,7 @@ irc_command_send_ban (struct t_irc_server *server,
}
/*
* Callback for command "/ban": bans nicks or hosts.
* Callback for command "/ban": ban nicks or hosts.
*/
IRC_COMMAND_CALLBACK(ban)
@@ -1721,9 +1721,9 @@ IRC_COMMAND_CALLBACK(cap)
}
/*
* Connects to one server.
* Connect to one server.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1768,7 +1768,7 @@ irc_command_connect_one_server (struct t_irc_server *server,
}
/*
* Callback for command "/connect": connects to server(s).
* Callback for command "/connect": connect to server(s).
*/
IRC_COMMAND_CALLBACK(connect)
@@ -1945,7 +1945,7 @@ IRC_COMMAND_CALLBACK(connect)
}
/*
* Callback for command "/ctcp": sends a CTCP message.
* Callback for command "/ctcp": send a CTCP message.
*/
IRC_COMMAND_CALLBACK(ctcp)
@@ -2055,7 +2055,7 @@ IRC_COMMAND_CALLBACK(ctcp)
}
/*
* Callback for command "/cycle": leaves and rejoins a channel.
* Callback for command "/cycle": leave and rejoin a channel.
*/
IRC_COMMAND_CALLBACK(cycle)
@@ -2263,7 +2263,7 @@ end:
}
/*
* Callback for command "/dehalfop": removes half operator privileges from
* Callback for command "/dehalfop": remove half operator privileges from
* nickname(s).
*/
@@ -2303,7 +2303,7 @@ IRC_COMMAND_CALLBACK(dehalfop)
}
/*
* Callback for command "/deop": removes operator privileges from nickname(s).
* Callback for command "/deop": remove operator privileges from nickname(s).
*/
IRC_COMMAND_CALLBACK(deop)
@@ -2342,7 +2342,7 @@ IRC_COMMAND_CALLBACK(deop)
}
/*
* Callback for command "/devoice": removes voice from nickname(s).
* Callback for command "/devoice": remove voice from nickname(s).
*/
IRC_COMMAND_CALLBACK(devoice)
@@ -2381,7 +2381,7 @@ IRC_COMMAND_CALLBACK(devoice)
}
/*
* Callback for command "/die": shutdowns the server.
* Callback for command "/die": shut down the server.
*/
IRC_COMMAND_CALLBACK(die)
@@ -2409,7 +2409,7 @@ IRC_COMMAND_CALLBACK(die)
}
/*
* Sends QUIT to a server.
* Send QUIT to a server.
*/
void
@@ -2441,9 +2441,9 @@ irc_command_quit_server (struct t_irc_server *server, const char *arguments)
}
/*
* Disconnects from a server.
* Disconnect from a server.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -2482,7 +2482,7 @@ irc_command_disconnect_one_server (struct t_irc_server *server,
}
/*
* Callback for command "/disconnect": disconnects from server(s).
* Callback for command "/disconnect": disconnect from server(s).
*/
IRC_COMMAND_CALLBACK(disconnect)
@@ -2556,7 +2556,7 @@ IRC_COMMAND_CALLBACK(disconnect)
}
/*
* Callback for command "/halfop": gives half operator privileges to
* Callback for command "/halfop": give half operator privileges to
* nickname(s).
*/
@@ -2596,7 +2596,7 @@ IRC_COMMAND_CALLBACK(halfop)
}
/*
* Displays an ignore.
* Display an ignore.
*/
void
@@ -2616,7 +2616,7 @@ irc_command_ignore_display (struct t_irc_ignore *ignore)
}
/*
* Callback for command "/ignore": adds or removes ignore.
* Callback for command "/ignore": add or remove ignore.
*/
IRC_COMMAND_CALLBACK(ignore)
@@ -2804,7 +2804,7 @@ IRC_COMMAND_CALLBACK(ignore)
}
/*
* Callback for command "/info": gets information describing the server.
* Callback for command "/info": get information describing the server.
*/
IRC_COMMAND_CALLBACK(info)
@@ -2832,7 +2832,7 @@ IRC_COMMAND_CALLBACK(info)
}
/*
* Callback for command "/invite": invites a nick on a channel.
* Callback for command "/invite": invite a nick on a channel.
*/
IRC_COMMAND_CALLBACK(invite)
@@ -2896,7 +2896,7 @@ error:
}
/*
* Callback for command "/ison": checks if a nickname is currently on IRC.
* Callback for command "/ison": check if a nickname is currently on IRC.
*/
IRC_COMMAND_CALLBACK(ison)
@@ -2918,7 +2918,7 @@ IRC_COMMAND_CALLBACK(ison)
}
/*
* Sends JOIN command to a server.
* Send JOIN command to a server.
*/
void
@@ -3073,7 +3073,7 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments,
}
/*
* Callback for command "/join": joins a new channel.
* Callback for command "/join": join a new channel.
*/
IRC_COMMAND_CALLBACK(join)
@@ -3162,7 +3162,7 @@ IRC_COMMAND_CALLBACK(join)
}
/*
* Sends a kick message to a channel.
* Send a kick message to a channel.
*/
void
@@ -3196,7 +3196,7 @@ irc_command_kick_channel (struct t_irc_server *server,
}
/*
* Callback for command "/kick": forcibly removes a user from a channel.
* Callback for command "/kick": forcibly remove a user from a channel.
*/
IRC_COMMAND_CALLBACK(kick)
@@ -3242,7 +3242,7 @@ IRC_COMMAND_CALLBACK(kick)
}
/*
* Callback for command "/kickban": forcibly removes a user from a channel and
* Callback for command "/kickban": forcibly remove a user from a channel and
* bans it.
*/
@@ -3334,7 +3334,7 @@ IRC_COMMAND_CALLBACK(kickban)
}
/*
* Callback for command "/kill": closes client-server connection.
* Callback for command "/kill": close client-server connection.
*/
IRC_COMMAND_CALLBACK(kill)
@@ -3363,7 +3363,7 @@ IRC_COMMAND_CALLBACK(kill)
}
/*
* Callback for command "/knock": sends a notice to an invitation-only channel,
* Callback for command "/knock": send a notice to an invitation-only channel,
* requesting an invite.
*/
@@ -3393,7 +3393,7 @@ IRC_COMMAND_CALLBACK(knock)
}
/*
* Callback for command "/links": lists all server names which are known by the
* Callback for command "/links": list all server names which are known by the
* server answering the query.
*/
@@ -3422,7 +3422,7 @@ IRC_COMMAND_CALLBACK(links)
}
/*
* Gets an integer argument given to the /list command.
* Get an integer argument given to the /list command.
*/
int
@@ -3444,7 +3444,7 @@ irc_command_list_get_int_arg (int argc, char **argv, int arg_number,
}
/*
* Callback for command "/list": lists channels and their topics.
* Callback for command "/list": list channels and their topics.
*/
IRC_COMMAND_CALLBACK(list)
@@ -3673,8 +3673,7 @@ IRC_COMMAND_CALLBACK(list)
}
/*
* Callback for command "/lusers": gets statistics about the size of the IRC
* network.
* Callback for command "/lusers": get statistics about the size of the IRC network.
*/
IRC_COMMAND_CALLBACK(lusers)
@@ -3702,7 +3701,7 @@ IRC_COMMAND_CALLBACK(lusers)
}
/*
* Callback for command "/map": shows a graphical map of the IRC network.
* Callback for command "/map": show a graphical map of the IRC network.
*/
IRC_COMMAND_CALLBACK(map)
@@ -3730,7 +3729,7 @@ IRC_COMMAND_CALLBACK(map)
}
/*
* Callback for command "/me": sends a CTCP ACTION to the current channel.
* Callback for command "/me": send a CTCP ACTION to the current channel.
*/
IRC_COMMAND_CALLBACK(me)
@@ -3759,7 +3758,7 @@ IRC_COMMAND_CALLBACK(me)
}
/*
* Sends MODE command on a server.
* Send MODE command on a server.
*/
void
@@ -3788,7 +3787,7 @@ irc_command_mode_server (struct t_irc_server *server,
}
/*
* Callback for command "/mode": changes mode for channel/nickname.
* Callback for command "/mode": change mode for channel/nickname.
*/
IRC_COMMAND_CALLBACK(mode)
@@ -3844,7 +3843,7 @@ IRC_COMMAND_CALLBACK(mode)
}
/*
* Callback for command "/motd": gets the "Message Of The Day".
* Callback for command "/motd": get the "Message Of The Day".
*/
IRC_COMMAND_CALLBACK(motd)
@@ -3872,7 +3871,7 @@ IRC_COMMAND_CALLBACK(motd)
}
/*
* Callback for command "/msg": sends a message to a nick or channel.
* Callback for command "/msg": send a message to a nick or channel.
*/
IRC_COMMAND_CALLBACK(msg)
@@ -3980,7 +3979,7 @@ IRC_COMMAND_CALLBACK(msg)
}
/*
* Callback for command "/names": lists nicknames on channels.
* Callback for command "/names": list nicknames on channels.
*/
IRC_COMMAND_CALLBACK(names)
@@ -4059,7 +4058,7 @@ IRC_COMMAND_CALLBACK(names)
}
/*
* Changes nickname on a server.
* Change nickname on a server.
*/
void
@@ -4080,7 +4079,7 @@ irc_send_nick_server (struct t_irc_server *server, const char *nickname)
}
/*
* Callback for command "/nick": changes nickname.
* Callback for command "/nick": change nickname.
*/
IRC_COMMAND_CALLBACK(nick)
@@ -4112,7 +4111,7 @@ IRC_COMMAND_CALLBACK(nick)
}
/*
* Callback for command "/notice": sends notice message.
* Callback for command "/notice": send notice message.
*/
IRC_COMMAND_CALLBACK(notice)
@@ -4176,7 +4175,7 @@ IRC_COMMAND_CALLBACK(notice)
}
/*
* Callback for command "/notify": adds or removes notify.
* Callback for command "/notify": add or remove notify.
*/
IRC_COMMAND_CALLBACK(notify)
@@ -4376,7 +4375,7 @@ IRC_COMMAND_CALLBACK(notify)
}
/*
* Callback for command "/op": gives operator privileges to nickname(s).
* Callback for command "/op": give operator privileges to nickname(s).
*/
IRC_COMMAND_CALLBACK(op)
@@ -4415,7 +4414,7 @@ IRC_COMMAND_CALLBACK(op)
}
/*
* Callback for command "/oper": gets oper privileges.
* Callback for command "/oper": get oper privileges.
*/
IRC_COMMAND_CALLBACK(oper)
@@ -4437,7 +4436,7 @@ IRC_COMMAND_CALLBACK(oper)
}
/*
* Sends a part message for a channel.
* Send a part message for a channel.
*/
void
@@ -4467,7 +4466,7 @@ irc_command_part_channel (struct t_irc_server *server, const char *channel_name,
}
/*
* Callback for command "/part": leaves a channel or close a private buffer.
* Callback for command "/part": leave a channel or close a private buffer.
*/
IRC_COMMAND_CALLBACK(part)
@@ -4553,7 +4552,7 @@ IRC_COMMAND_CALLBACK(part)
}
/*
* Callback for command "/ping": pings a server.
* Callback for command "/ping": ping a server.
*/
IRC_COMMAND_CALLBACK(ping)
@@ -4575,7 +4574,7 @@ IRC_COMMAND_CALLBACK(ping)
}
/*
* Callback for command "/pong": sends pong answer to a daemon.
* Callback for command "/pong": send pong answer to a daemon.
*/
IRC_COMMAND_CALLBACK(pong)
@@ -4597,7 +4596,7 @@ IRC_COMMAND_CALLBACK(pong)
}
/*
* Callback for command "/query": starts private conversation with a nick.
* Callback for command "/query": start private conversation with a nick.
*/
IRC_COMMAND_CALLBACK(query)
@@ -4729,7 +4728,7 @@ IRC_COMMAND_CALLBACK(query)
}
/*
* Callback for command "/quiet": quiets nicks or hosts.
* Callback for command "/quiet": quiet nicks or hosts.
*/
IRC_COMMAND_CALLBACK(quiet)
@@ -4806,7 +4805,7 @@ IRC_COMMAND_CALLBACK(quiet)
}
/*
* Callback for command "/quote": sends raw data to server.
* Callback for command "/quote": send raw data to server.
*/
IRC_COMMAND_CALLBACK(quote)
@@ -4845,9 +4844,9 @@ IRC_COMMAND_CALLBACK(quote)
}
/*
* Reconnects to a server.
* Reconnect to a server.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -4887,7 +4886,7 @@ irc_command_reconnect_one_server (struct t_irc_server *server,
}
/*
* Callback for command "/reconnect": reconnects to server(s).
* Callback for command "/reconnect": reconnect to server(s).
*/
IRC_COMMAND_CALLBACK(reconnect)
@@ -4975,7 +4974,7 @@ IRC_COMMAND_CALLBACK(reconnect)
}
/*
* Callback for command "/rehash": tells the server to reload its config file.
* Callback for command "/rehash": tell the server to reload its config file.
*/
IRC_COMMAND_CALLBACK(rehash)
@@ -5064,7 +5063,7 @@ IRC_COMMAND_CALLBACK(remove)
}
/*
* Callback for command "/restart": tells the server to restart itself.
* Callback for command "/restart": tell the server to restart itself.
*/
IRC_COMMAND_CALLBACK(restart)
@@ -5092,7 +5091,7 @@ IRC_COMMAND_CALLBACK(restart)
}
/*
* Callback for command "/rules": requests the server rules
* Callback for command "/rules": request the server rules
*/
IRC_COMMAND_CALLBACK(rules)
@@ -5114,7 +5113,7 @@ IRC_COMMAND_CALLBACK(rules)
}
/*
* Callback for command "/sajoin": forces a user to join channel(s).
* Callback for command "/sajoin": force a user to join channel(s).
*/
IRC_COMMAND_CALLBACK(sajoin)
@@ -5135,7 +5134,7 @@ IRC_COMMAND_CALLBACK(sajoin)
}
/*
* Callback for command "/samode": changes mode on channel, without having
* Callback for command "/samode": change mode on channel, without having
* operator status.
*/
@@ -5195,7 +5194,7 @@ IRC_COMMAND_CALLBACK(samode)
}
/*
* Callback for command "/sanick": forces a user to use another nick.
* Callback for command "/sanick": force a user to use another nick.
*/
IRC_COMMAND_CALLBACK(sanick)
@@ -5216,7 +5215,7 @@ IRC_COMMAND_CALLBACK(sanick)
}
/*
* Callback for command "/sapart": forces a user to leave channel(s).
* Callback for command "/sapart": force a user to leave channel(s).
*/
IRC_COMMAND_CALLBACK(sapart)
@@ -5237,7 +5236,7 @@ IRC_COMMAND_CALLBACK(sapart)
}
/*
* Callback for command "/saquit": forces a user to quit server with a reason.
* Callback for command "/saquit": force a user to quit server with a reason.
*/
IRC_COMMAND_CALLBACK(saquit)
@@ -5258,7 +5257,7 @@ IRC_COMMAND_CALLBACK(saquit)
}
/*
* Displays server options.
* Display server options.
*/
void
@@ -5735,7 +5734,7 @@ irc_command_display_server (struct t_irc_server *server, int with_detail)
}
/*
* Callback for command "/server": manages IRC servers.
* Callback for command "/server": manage IRC servers.
*/
IRC_COMMAND_CALLBACK(server)
@@ -6169,7 +6168,7 @@ IRC_COMMAND_CALLBACK(server)
}
/*
* Callback for command "/service": registers a new service.
* Callback for command "/service": register a new service.
*/
IRC_COMMAND_CALLBACK(service)
@@ -6191,7 +6190,7 @@ IRC_COMMAND_CALLBACK(service)
}
/*
* Callback for command "/servlist": lists services currently connected to the
* Callback for command "/servlist": list services currently connected to the
* network.
*/
@@ -6220,7 +6219,7 @@ IRC_COMMAND_CALLBACK(servlist)
}
/*
* Callback for command "/squery": delivers a message to a service.
* Callback for command "/squery": deliver a message to a service.
*/
IRC_COMMAND_CALLBACK(squery)
@@ -6270,7 +6269,7 @@ IRC_COMMAND_CALLBACK(setname)
}
/*
* Callback for command "/squit": disconnects server links.
* Callback for command "/squit": disconnect server links.
*/
IRC_COMMAND_CALLBACK(squit)
@@ -6292,7 +6291,7 @@ IRC_COMMAND_CALLBACK(squit)
}
/*
* Callback for command "/stats": queries statistics about server.
* Callback for command "/stats": query statistics about server.
*/
IRC_COMMAND_CALLBACK(stats)
@@ -6320,7 +6319,7 @@ IRC_COMMAND_CALLBACK(stats)
}
/*
* Callback for command "/summon": gives users who are on a host running an IRC
* Callback for command "/summon": give users who are on a host running an IRC
* server a message asking them to please join IRC.
*/
@@ -6343,7 +6342,7 @@ IRC_COMMAND_CALLBACK(summon)
}
/*
* Callback for command "/time": queries local time from server.
* Callback for command "/time": query local time from server.
*/
IRC_COMMAND_CALLBACK(time)
@@ -6371,7 +6370,7 @@ IRC_COMMAND_CALLBACK(time)
}
/*
* Callback for command "/topic": gets/sets topic for a channel.
* Callback for command "/topic": get/set topic for a channel.
*/
IRC_COMMAND_CALLBACK(topic)
@@ -6447,7 +6446,7 @@ IRC_COMMAND_CALLBACK(topic)
}
/*
* Callback for command "/trace": finds the route to specific server.
* Callback for command "/trace": find the route to specific server.
*/
IRC_COMMAND_CALLBACK(trace)
@@ -6475,7 +6474,7 @@ IRC_COMMAND_CALLBACK(trace)
}
/*
* Callback for command "/unban": unbans nicks or hosts.
* Callback for command "/unban": unban nicks or hosts.
*/
IRC_COMMAND_CALLBACK(unban)
@@ -6533,7 +6532,7 @@ IRC_COMMAND_CALLBACK(unban)
}
/*
* Callback for command "/unquiet": unquiets nicks or hosts.
* Callback for command "/unquiet": unquiet nicks or hosts.
*/
IRC_COMMAND_CALLBACK(unquiet)
@@ -6600,8 +6599,7 @@ IRC_COMMAND_CALLBACK(unquiet)
}
/*
* Callback for command "/userhost": returns a list of information about
* nicknames.
* Callback for command "/userhost": return a list of information about nicknames.
*/
IRC_COMMAND_CALLBACK(userhost)
@@ -6623,7 +6621,7 @@ IRC_COMMAND_CALLBACK(userhost)
}
/*
* Callback for command "/users": list of users logged into the server.
* Callback for command "/users": list users logged into the server.
*/
IRC_COMMAND_CALLBACK(users)
@@ -6651,7 +6649,7 @@ IRC_COMMAND_CALLBACK(users)
}
/*
* Callback for command "/version": gives the version info of nick or server
* Callback for command "/version": give the version info of nick or server
* (current or specified).
*/
@@ -6689,7 +6687,7 @@ IRC_COMMAND_CALLBACK(version)
}
/*
* Callback for command "/voice": gives voice to nickname(s).
* Callback for command "/voice": give voice to nickname(s).
*/
IRC_COMMAND_CALLBACK(voice)
@@ -6728,7 +6726,7 @@ IRC_COMMAND_CALLBACK(voice)
}
/*
* Callback for command "/wallchops": sends a notice to channel ops.
* Callback for command "/wallchops": send a notice to channel ops.
*/
IRC_COMMAND_CALLBACK(wallchops)
@@ -6843,7 +6841,7 @@ IRC_COMMAND_CALLBACK(wallchops)
}
/*
* Callback for command "/wallops": sends a message to all currently connected
* Callback for command "/wallops": send a message to all currently connected
* users who have set the 'w' user mode for themselves.
*/
@@ -6866,8 +6864,7 @@ IRC_COMMAND_CALLBACK(wallops)
}
/*
* Callback for command "/who": generates a query which returns a list of
* information.
* Callback for command "/who": query a list of information.
*/
IRC_COMMAND_CALLBACK(who)
@@ -6895,7 +6892,7 @@ IRC_COMMAND_CALLBACK(who)
}
/*
* Callback for command "/whois": queries information about user(s).
* Callback for command "/whois": query information about user(s).
*/
IRC_COMMAND_CALLBACK(whois)
@@ -6945,7 +6942,7 @@ IRC_COMMAND_CALLBACK(whois)
}
/*
* Callback for command "/whowas": asks for information about a nickname which
* Callback for command "/whowas": ask for information about a nickname which
* no longer exists.
*/
@@ -6968,7 +6965,7 @@ IRC_COMMAND_CALLBACK(whowas)
}
/*
* Hooks IRC commands.
* Hook IRC commands.
*/
void
+23 -24
View File
@@ -41,7 +41,7 @@
/*
* Adds current server to completion list.
* Add current server to completion list.
*/
int
@@ -67,7 +67,7 @@ irc_completion_server_cb (const void *pointer, void *data,
}
/*
* Adds self nick of current server to completion list.
* Add self nick of current server to completion list.
*/
int
@@ -93,7 +93,7 @@ irc_completion_server_nick_cb (const void *pointer, void *data,
}
/*
* Adds channels of current server to completion list.
* Add channels of current server to completion list.
*/
int
@@ -135,7 +135,7 @@ irc_completion_server_channels_cb (const void *pointer, void *data,
}
/*
* Adds privates of current server to completion list.
* Add privates of current server to completion list.
*/
int
@@ -170,7 +170,7 @@ irc_completion_server_privates_cb (const void *pointer, void *data,
}
/*
* Adds nicks of current server to completion list.
* Add nicks of current server to completion list.
*/
int
@@ -214,7 +214,7 @@ irc_completion_server_nicks_cb (const void *pointer, void *data,
}
/*
* Adds prefix modes filters to completion list.
* Add prefix modes filters to completion list.
*/
int
@@ -253,7 +253,7 @@ irc_completion_server_prefix_modes_filter_cb (const void *pointer, void *data,
}
/*
* Adds servers to completion list.
* Add servers to completion list.
*/
int
@@ -281,7 +281,7 @@ irc_completion_servers_cb (const void *pointer, void *data,
}
/*
* Adds current channel to completion list.
* Add current channel to completion list.
*/
int
@@ -307,7 +307,7 @@ irc_completion_channel_cb (const void *pointer, void *data,
}
/*
* Adds recent speakers to completion list.
* Add recent speakers to completion list.
*/
void
@@ -338,7 +338,7 @@ irc_completion_channel_nicks_add_speakers (struct t_gui_completion *completion,
}
/*
* Adds nicks of current channel to completion list.
* Add nicks of current channel to completion list.
*/
int
@@ -405,7 +405,7 @@ irc_completion_channel_nicks_cb (const void *pointer, void *data,
}
/*
* Adds nicks and hosts of current channel to completion list.
* Add nicks and hosts of current channel to completion list.
*/
int
@@ -461,7 +461,7 @@ irc_completion_channel_nicks_hosts_cb (const void *pointer, void *data,
}
/*
* Adds modelist masks of current channel to completion list.
* Add modelist masks of current channel to completion list.
*/
int
@@ -503,7 +503,7 @@ irc_completion_modelist_masks_cb (const void *pointer, void *data,
}
/*
* Adds modelist numbers of current channel to completion list.
* Add modelist numbers of current channel to completion list.
*/
int
@@ -547,7 +547,7 @@ irc_completion_modelist_numbers_cb (const void *pointer, void *data,
}
/*
* Adds topic of current channel to completion list.
* Add topic of current channel to completion list.
*/
int
@@ -600,7 +600,7 @@ irc_completion_channel_topic_cb (const void *pointer, void *data,
}
/*
* Adds channels of all servers to completion list.
* Add channels of all servers to completion list.
*/
int
@@ -673,8 +673,7 @@ irc_completion_channels_cb (const void *pointer, void *data,
}
/*
* Adds channels automatically joined on the current server
* (option "autojoin").
* Add channels automatically joined on the current server (option "autojoin").
*/
int
@@ -721,7 +720,7 @@ irc_completion_channels_autojoin_cb (const void *pointer, void *data,
}
/*
* Adds privates of all servers to completion list.
* Add privates of all servers to completion list.
*/
int
@@ -757,7 +756,7 @@ irc_completion_privates_cb (const void *pointer, void *data,
}
/*
* Adds default kick message to completion list.
* Add default kick message to completion list.
*/
int
@@ -790,7 +789,7 @@ irc_completion_msg_kick_cb (const void *pointer, void *data,
}
/*
* Adds default part message to completion list.
* Add default part message to completion list.
*/
int
@@ -823,7 +822,7 @@ irc_completion_msg_part_cb (const void *pointer, void *data,
}
/*
* Adds ignore numbers to completion list.
* Add ignore numbers to completion list.
*/
int
@@ -853,7 +852,7 @@ irc_completion_ignores_numbers_cb (const void *pointer, void *data,
}
/*
* Adds nicks in notify list to completion list.
* Add nicks in notify list to completion list.
*/
int
@@ -898,7 +897,7 @@ irc_completion_notify_nicks_cb (const void *pointer, void *data,
}
/*
* Adds filters for raw buffer to completion list.
* Add filters for raw buffer to completion list.
*/
int
@@ -954,7 +953,7 @@ irc_completion_raw_filters_cb (const void *pointer, void *data,
}
/*
* Hooks completions.
* Hook completions.
*/
void
+30 -32
View File
@@ -194,7 +194,7 @@ int irc_config_num_nicks_hide_password = 0;
/*
* Gets server pointer with name of option.
* Get server pointer with name of option.
*/
struct t_irc_server *
@@ -223,7 +223,7 @@ irc_config_get_server_from_option_name (const char *name)
}
/*
* Computes nick colors for all servers and channels.
* Compute nick colors for all servers and channels.
*/
void
@@ -263,10 +263,10 @@ irc_config_compute_nick_colors (void)
}
/*
* Checks if channel modes arguments must be displayed or hidden
* Check if channel modes arguments must be displayed or hidden
* (according to option irc.look.item_channel_modes_hide_args).
*
* Returns:
* Return:
* 1: channel modes arguments must be displayed
* 0: channel modes arguments must be hidden
*/
@@ -645,10 +645,9 @@ irc_config_change_look_nicks_hide_password (const void *pointer, void *data,
}
/*
* Checks if we must notify for the notice message, according to the nick
* who sent it.
* Check if we must notify for the notice message, according to the nick who sent it.
*
* Returns:
* Return:
* 1: notification
* 0: no notification
*/
@@ -1179,9 +1178,9 @@ irc_config_server_default_change_cb (const void *pointer, void *data,
}
/*
* Checks string with GnuTLS priorities.
* Check string with GnuTLS priorities.
*
* Returns NULL if OK, or pointer to char with error in string.
* Return NULL if OK, or pointer to char with error in string.
*/
const char *
@@ -1206,11 +1205,11 @@ irc_config_check_gnutls_priorities (const char *priorities)
}
/*
* Checks autojoin value, which must respect the IRC JOIN syntax:
* Check autojoin value, which must respect the IRC JOIN syntax:
* #chan1,#chan2
* #chan1,#chan2,#chan3 key1,key2
*
* Returns:
* Return:
* 1: value OK
* 0: invalid value
*/
@@ -1478,13 +1477,12 @@ irc_config_server_change_cb (const void *pointer, void *data,
}
/*
* Callback called when "notify" option from "server_default" section is
* changed.
* Callback called when "notify" option from "server_default" section is changed.
*
* This function is used to reject any value in the option (this option is not
* used, only values in servers are used for notify).
*
* Returns:
* Return:
* 1: value is not set
* 0: value is set
*/
@@ -1506,7 +1504,7 @@ irc_config_server_default_check_notify (const void *pointer, void *data,
}
/*
* Reloads IRC configuration file.
* Reload IRC configuration file.
*/
int
@@ -1567,7 +1565,7 @@ irc_config_reload (const void *pointer, void *data,
}
/*
* Sets a message target buffer.
* Set a message target buffer.
*/
int
@@ -1652,7 +1650,7 @@ irc_config_msgbuffer_create_option_cb (const void *pointer, void *data,
}
/*
* Writes default ctcp reply formats.
* Write default ctcp reply formats.
*/
int
@@ -1682,7 +1680,7 @@ irc_config_ctcp_write_default_cb (const void *pointer, void *data,
}
/*
* Sets a ctcp reply format.
* Set a ctcp reply format.
*/
int
@@ -1781,9 +1779,9 @@ irc_config_ctcp_create_option_cb (const void *pointer, void *data,
}
/*
* Reads ignore option from configuration file.
* Read ignore option from configuration file.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1839,7 +1837,7 @@ irc_config_ignore_read_cb (const void *pointer, void *data,
}
/*
* Writes ignore section in IRC configuration file.
* Write ignore section in IRC configuration file.
*/
int
@@ -1872,9 +1870,9 @@ irc_config_ignore_write_cb (const void *pointer, void *data,
}
/*
* Creates a new option for a server.
* Create a new option for a server.
*
* Returns pointer to new option, NULL if error.
* Return pointer to new option, NULL if error.
*/
struct t_config_option *
@@ -2802,7 +2800,7 @@ irc_config_server_new_option (struct t_config_file *config_file,
}
/*
* Reads server option in IRC configuration file.
* Read server option in IRC configuration file.
*/
int
@@ -2872,7 +2870,7 @@ irc_config_server_read_cb (const void *pointer, void *data,
}
/*
* Writes server section in IRC configuration file.
* Write server section in IRC configuration file.
*/
int
@@ -2905,7 +2903,7 @@ irc_config_server_write_cb (const void *pointer, void *data,
}
/*
* Creates default options for servers.
* Create default options for servers.
*/
void
@@ -2933,7 +2931,7 @@ irc_config_server_create_default_options (struct t_config_section *section)
}
/*
* Updates options in configuration file while reading the file.
* Update options in configuration file while reading the file.
*/
struct t_hashtable *
@@ -3169,9 +3167,9 @@ irc_config_update_cb (const void *pointer, void *data,
}
/*
* Initializes IRC configuration file.
* Initialize IRC configuration file.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -4241,7 +4239,7 @@ irc_config_init (void)
}
/*
* Reads IRC configuration file.
* Read IRC configuration file.
*/
int
@@ -4269,7 +4267,7 @@ irc_config_read (void)
}
/*
* Writes IRC configuration file.
* Write IRC configuration file.
*/
int
@@ -4279,7 +4277,7 @@ irc_config_write (void)
}
/*
* Frees IRC configuration.
* Free IRC configuration.
*/
void
+18 -18
View File
@@ -55,7 +55,7 @@ struct t_irc_ctcp_reply irc_ctcp_default_reply[] =
/*
* Converts old CTCP format, by converting format "$xxx" to "${xxx}"
* Convert old CTCP format, by converting format "$xxx" to "${xxx}"
* (new CTCP formats are evaluated).
*
* Note: result must be freed after use.
@@ -104,9 +104,9 @@ irc_ctcp_convert_legacy_format (const char *format)
}
/*
* Gets default reply for a CTCP query.
* Get default reply for a CTCP query.
*
* Returns NULL if CTCP is unknown.
* Return NULL if CTCP is unknown.
*/
const char *
@@ -125,7 +125,7 @@ irc_ctcp_get_default_reply (const char *ctcp)
}
/*
* Gets reply for a CTCP query.
* Get reply for a CTCP query.
*/
const char *
@@ -171,7 +171,7 @@ irc_ctcp_get_reply (struct t_irc_server *server, const char *ctcp)
}
/*
* Extracts CTCP type and arguments from message, which format is:
* Extract CTCP type and arguments from message, which format is:
* \001TYPE arguments...\001
*
* Strings *type and *arguments are set with type and arguments parsed,
@@ -210,7 +210,7 @@ irc_ctcp_parse_type_arguments (const char *message,
}
/*
* Displays CTCP requested by a nick.
* Display CTCP requested by a nick.
*/
void
@@ -246,7 +246,7 @@ irc_ctcp_display_request (struct t_irc_protocol_ctxt *ctxt,
}
/*
* Displays reply from a nick to a CTCP query.
* Display reply from a nick to a CTCP query.
*/
void
@@ -359,7 +359,7 @@ irc_ctcp_display_reply_from_nick (struct t_irc_protocol_ctxt *ctxt,
}
/*
* Displays CTCP reply to a nick (internal function).
* Display CTCP reply to a nick (internal function).
*/
void
@@ -388,7 +388,7 @@ irc_ctcp_display_reply_to_nick_internal (struct t_irc_protocol_ctxt *ctxt,
}
/*
* Displays CTCP reply to a nick.
* Display CTCP reply to a nick.
*/
void
@@ -417,7 +417,7 @@ irc_ctcp_display_reply_to_nick (struct t_irc_protocol_ctxt *ctxt,
}
/*
* Replies to CTCP from a nick and displays reply.
* Reply to CTCP from a nick and displays reply.
*/
void
@@ -500,7 +500,7 @@ end:
}
/*
* Compares two CTCPs in arraylist.
* Compare two CTCPs in arraylist.
*/
int
@@ -515,7 +515,7 @@ irc_ctcp_list_ctcp_cmp_cb (void *data, struct t_arraylist *arraylist,
}
/*
* Frees a CTCP in arraylist.
* Free a CTCP in arraylist.
*/
void
@@ -530,7 +530,7 @@ irc_ctcp_list_ctcp_free_cb (void *data, struct t_arraylist *arraylist,
}
/*
* Returns list of supported/configured CTCP replies, aggregation of these
* Return list of supported/configured CTCP replies, aggregation of these
* lists:
*
* - list of default CTCP replies (if not blocked)
@@ -617,7 +617,7 @@ irc_ctcp_get_supported_ctcp (struct t_irc_server *server)
}
/*
* Evaluates CTCP reply format.
* Evaluate CTCP reply format.
*
* Note: result must be freed after use.
*/
@@ -788,7 +788,7 @@ irc_ctcp_eval_reply (struct t_irc_server *server, const char *format)
}
/*
* Returns filename for DCC, without double quotes.
* Return filename for DCC, without double quotes.
*
* Note: result must be freed after use.
*/
@@ -808,7 +808,7 @@ irc_ctcp_dcc_filename_without_quotes (const char *filename)
}
/*
* Parses CTCP DCC.
* Parse CTCP DCC.
*/
void
@@ -1398,7 +1398,7 @@ irc_ctcp_recv_dcc (struct t_irc_protocol_ctxt *ctxt, const char *arguments)
}
/*
* Receives a CTCP and if needed replies to query.
* Receive a CTCP and if needed replies to query.
*/
void
@@ -1638,7 +1638,7 @@ irc_ctcp_recv (struct t_irc_protocol_ctxt *ctxt,
}
/*
* Sends a CTCP to a target.
* Send a CTCP to a target.
*/
void
+2 -2
View File
@@ -33,7 +33,7 @@
/*
* Dumps IRC data in WeeChat log file.
* Dump IRC data in WeeChat log file.
*/
int
@@ -66,7 +66,7 @@ irc_debug_signal_debug_dump_cb (const void *pointer, void *data,
}
/*
* Initializes debug for IRC plugin.
* Initialize debug for IRC plugin.
*/
void
+22 -22
View File
@@ -37,9 +37,9 @@ struct t_irc_ignore *last_irc_ignore = NULL; /* last ignore in list */
/*
* Checks if an ignore pointer is valid.
* Check if an ignore pointer is valid.
*
* Returns:
* Return:
* 1: ignore exists
* 0: ignore does not exist
*/
@@ -64,9 +64,9 @@ irc_ignore_valid (struct t_irc_ignore *ignore)
}
/*
* Searches for an ignore.
* Search for an ignore.
*
* Returns pointer to ignore found, NULL if not found.
* Return pointer to ignore found, NULL if not found.
*/
struct t_irc_ignore *
@@ -99,9 +99,9 @@ irc_ignore_search (const char *mask, const char *server, const char *channel)
}
/*
* Searches for an ignore by number (first is #1).
* Search for an ignore by number (first is #1).
*
* Returns pointer to ignore found, NULL if not found.
* Return pointer to ignore found, NULL if not found.
*/
struct t_irc_ignore *
@@ -121,9 +121,9 @@ irc_ignore_search_by_number (int number)
}
/*
* Adds a new ignore.
* Add a new ignore.
*
* Returns pointer to new ignore, NULL if error.
* Return pointer to new ignore, NULL if error.
*/
struct t_irc_ignore *
@@ -169,9 +169,9 @@ irc_ignore_new (const char *mask, const char *server, const char *channel)
}
/*
* Checks if an ignore matches a server name.
* Check if an ignore matches a server name.
*
* Returns:
* Return:
* 1: ignore matches the server name
* 0: ignore does not match the server name
*/
@@ -186,10 +186,10 @@ irc_ignore_check_server (struct t_irc_ignore *ignore, const char *server)
}
/*
* Checks if an ignore matches a channel name (or a nick if the channel name
* Check if an ignore matches a channel name (or a nick if the channel name
* is not a valid channel name).
*
* Returns:
* Return:
* 1: ignore matches the channel name
* 0: ignore does not match the channel name
*/
@@ -212,9 +212,9 @@ irc_ignore_check_channel (struct t_irc_ignore *ignore,
}
/*
* Checks if an ignore matches a host.
* Check if an ignore matches a host.
*
* Returns:
* Return:
* 1: ignore matches the host
* 0: ignore does not match the host
*/
@@ -248,9 +248,9 @@ irc_ignore_check_host (struct t_irc_ignore *ignore,
}
/*
* Checks if a message (from an IRC server) should be ignored or not.
* Check if a message (from an IRC server) should be ignored or not.
*
* Returns:
* Return:
* 1: message must be ignored
* 0: message must not be ignored
*/
@@ -289,7 +289,7 @@ irc_ignore_check (struct t_irc_server *server, const char *channel,
}
/*
* Removes an ignore.
* Remove an ignore.
*/
void
@@ -337,7 +337,7 @@ irc_ignore_free (struct t_irc_ignore *ignore)
}
/*
* Removes all ignores.
* Remove all ignores.
*/
void
@@ -350,7 +350,7 @@ irc_ignore_free_all (void)
}
/*
* Returns hdata for ignore.
* Return hdata for ignore.
*/
struct t_hdata *
@@ -381,9 +381,9 @@ irc_ignore_hdata_ignore_cb (const void *pointer, void *data,
}
/*
* Adds an ignore in an infolist.
* Add an ignore in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -412,7 +412,7 @@ irc_ignore_add_to_infolist (struct t_infolist *infolist,
}
/*
* Prints ignore infos in WeeChat log file (usually for crash dump).
* Print ignore infos in WeeChat log file (usually for crash dump).
*/
void
+27 -27
View File
@@ -43,7 +43,7 @@
/*
* Creates a string with a pointer inside an IRC structure.
* Create a string with a pointer inside an IRC structure.
*/
void
@@ -59,7 +59,7 @@ irc_info_create_string_with_pointer (char **string, void *pointer)
}
/*
* Returns IRC info "irc_is_channel".
* Return IRC info "irc_is_channel".
*/
char *
@@ -98,7 +98,7 @@ irc_info_info_irc_is_channel_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_is_nick".
* Return IRC info "irc_is_nick".
*/
char *
@@ -136,7 +136,7 @@ irc_info_info_irc_is_nick_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_nick".
* Return IRC info "irc_nick".
*/
char *
@@ -161,7 +161,7 @@ irc_info_info_irc_nick_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_nick_from_host".
* Return IRC info "irc_nick_from_host".
*/
char *
@@ -185,7 +185,7 @@ irc_info_info_irc_nick_from_host_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_nick_color".
* Return IRC info "irc_nick_color".
*/
char *
@@ -205,7 +205,7 @@ irc_info_info_irc_nick_color_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_nick_color_name".
* Return IRC info "irc_nick_color_name".
*/
char *
@@ -225,7 +225,7 @@ irc_info_info_irc_nick_color_name_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_buffer".
* Return IRC info "irc_buffer".
*/
char *
@@ -324,7 +324,7 @@ irc_info_info_irc_buffer_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_server_isupport".
* Return IRC info "irc_server_isupport".
*/
char *
@@ -365,7 +365,7 @@ irc_info_info_irc_server_isupport_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_server_isupport_value".
* Return IRC info "irc_server_isupport_value".
*/
char *
@@ -406,7 +406,7 @@ irc_info_info_irc_server_isupport_value_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_server_cap".
* Return IRC info "irc_server_cap".
*/
char *
@@ -447,7 +447,7 @@ irc_info_info_irc_server_cap_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_server_cap_value".
* Return IRC info "irc_server_cap_value".
*/
char *
@@ -488,7 +488,7 @@ irc_info_info_irc_server_cap_value_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_is_message_ignored".
* Return IRC info "irc_is_message_ignored".
*/
char *
@@ -529,7 +529,7 @@ irc_info_info_irc_is_message_ignored_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_ptr_server".
* Return IRC info "irc_ptr_server".
*/
char *
@@ -557,7 +557,7 @@ irc_info_info_irc_ptr_server_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_ptr_channel".
* Return IRC info "irc_ptr_channel".
*/
char *
@@ -605,7 +605,7 @@ irc_info_info_irc_ptr_channel_cb (const void *pointer, void *data,
}
/*
* Returns IRC info "irc_ptr_nick".
* Return IRC info "irc_ptr_nick".
*/
char *
@@ -659,7 +659,7 @@ irc_info_info_irc_ptr_nick_cb (const void *pointer, void *data,
}
/*
* Returns IRC info with hashtable "irc_message_parse".
* Return IRC info with hashtable "irc_message_parse".
*/
struct t_hashtable *
@@ -692,7 +692,7 @@ irc_info_info_hashtable_irc_message_parse_cb (const void *pointer, void *data,
}
/*
* Returns IRC info with hashtable "irc_message_split".
* Return IRC info with hashtable "irc_message_split".
*/
struct t_hashtable *
@@ -725,7 +725,7 @@ irc_info_info_hashtable_irc_message_split_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_server".
* Return IRC infolist "irc_server".
*/
struct t_infolist *
@@ -781,7 +781,7 @@ irc_info_infolist_irc_server_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_channel".
* Return IRC infolist "irc_channel".
*/
struct t_infolist *
@@ -872,7 +872,7 @@ irc_info_infolist_irc_channel_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_modelist".
* Return IRC infolist "irc_modelist".
*/
struct t_infolist *
@@ -971,7 +971,7 @@ irc_info_infolist_irc_modelist_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_modelist_item".
* Return IRC infolist "irc_modelist_item".
*/
struct t_infolist *
@@ -1085,7 +1085,7 @@ irc_info_infolist_irc_modelist_item_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_nick".
* Return IRC infolist "irc_nick".
*/
struct t_infolist *
@@ -1186,7 +1186,7 @@ irc_info_infolist_irc_nick_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_ignore".
* Return IRC infolist "irc_ignore".
*/
struct t_infolist *
@@ -1239,7 +1239,7 @@ irc_info_infolist_irc_ignore_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_notify".
* Return IRC infolist "irc_notify".
*/
struct t_infolist *
@@ -1301,7 +1301,7 @@ irc_info_infolist_irc_notify_cb (const void *pointer, void *data,
}
/*
* Returns IRC infolist "irc_color_weechat".
* Return IRC infolist "irc_color_weechat".
*/
struct t_infolist *
@@ -1333,7 +1333,7 @@ irc_info_infolist_irc_color_weechat_cb (const void *pointer, void *data,
}
/*
* Hooks info, infolist and hdata for IRC plugin.
* Hook info, infolist and hdata for IRC plugin.
*/
void
+2 -3
View File
@@ -41,7 +41,7 @@
/*
* Displays user message.
* Display user message.
*
* If ctcp_type == "action", then message is displayed as an action
* (like command /me), for example:
@@ -281,8 +281,7 @@ irc_input_user_message_display (struct t_irc_server *server,
}
/*
* Sends a PRIVMSG message, and split it if message size is > 512 bytes
* (by default).
* Send a PRIVMSG message, and split it if message size is > 512 bytes (by default).
*
* Warning: this function makes temporary changes in "message".
*/
+25 -27
View File
@@ -35,7 +35,7 @@
/*
* Compares two join channels: name and key.
* Compare two join channels: name and key.
*/
int
@@ -61,7 +61,7 @@ irc_join_compare_join_channel (struct t_irc_server *server,
}
/*
* Compares two join channels: no sort, keyed channels first.
* Compare two join channels: no sort, keyed channels first.
*/
int
@@ -99,7 +99,7 @@ irc_join_compare_cb (void *data, struct t_arraylist *arraylist,
}
/*
* Compares two join channels: alphabetic sort, keyed channels first.
* Compare two join channels: alphabetic sort, keyed channels first.
*/
int
@@ -137,8 +137,7 @@ irc_join_compare_sort_alpha_cb (void *data, struct t_arraylist *arraylist,
}
/*
* Compares two join channels: buffer sort, then alphabetic,
* keyed channels first.
* Compare two join channels: buffer sort, then alphabetic, keyed channels first.
*/
int
@@ -190,7 +189,7 @@ irc_join_compare_sort_buffer_cb (void *data, struct t_arraylist *arraylist,
}
/*
* Frees a join channel.
* Free a join channel.
*/
void
@@ -220,10 +219,10 @@ irc_join_free_cb (void *data, struct t_arraylist *arraylist, void *pointer)
}
/*
* Removes all occurrences of a channel from the array list then adds the
* Remove all occurrences of a channel from the array list then adds the
* join channel (channel + key).
*
* Returns:
* Return:
* 1: join channel added to the list
* 0: join channel NOT added to the list
* (the caller must then free it if needed)
@@ -286,8 +285,7 @@ irc_join_arraylist_add (struct t_arraylist *arraylist,
}
/*
* Splits join string and returns an array list with a list of
* channels/keys.
* Split join string and return an array list with a list of channels/keys.
*
* The format of channels/keys is the one specified by RFC 1459 for the JOIN
* command (channels with key first in list), for example:
@@ -384,7 +382,7 @@ end:
}
/*
* Builds string with a list of channels/keys.
* Build string with a list of channels/keys.
*
* Note: result must be freed after use.
*/
@@ -441,9 +439,9 @@ end:
}
/*
* Checks if a channel is in a join string.
* Check if a channel is in a join string.
*
* Returns:
* Return:
* 1: channel found in join string (case-insensitive comparison)
* 0: channel NOT found in join string
*/
@@ -482,7 +480,7 @@ irc_join_has_channel (struct t_irc_server *server,
}
/*
* Adds a channel with optional key to the join string.
* Add a channel with optional key to the join string.
*
* Channels with a key are first in list, so for example:
*
@@ -525,7 +523,7 @@ irc_join_add_channel (struct t_irc_server *server,
}
/*
* Adds channels with optional keys to the join string.
* Add channels with optional keys to the join string.
*
* Channels with a key are first in list, so for example:
*
@@ -579,11 +577,11 @@ irc_join_add_channels (struct t_irc_server *server,
}
/*
* Sets the server autojoin option to a new value.
* Set the server autojoin option to a new value.
*
* If the autojoin contains a link to secure data (eg: "${sec.data.xxx}" with
* nothing before "${" and nothing after "}"), then the content of secure data
* is updated and the server autojoin option is kept as-is.
* nothing before "${" and nothing after "}"), update the content of secure data
* and keep the server autojoin option as-is.
*/
void
@@ -627,7 +625,7 @@ irc_join_set_autojoin_option (struct t_irc_server *server,
}
/*
* Adds a channel with optional key to the autojoin option of a server.
* Add a channel with optional key to the autojoin option of a server.
*/
void
@@ -654,7 +652,7 @@ irc_join_add_channel_to_autojoin (struct t_irc_server *server,
}
/*
* Adds channels with optional keys to the autojoin option of a server.
* Add channels with optional keys to the autojoin option of a server.
*/
void
@@ -678,7 +676,7 @@ irc_join_add_channels_to_autojoin (struct t_irc_server *server,
}
/*
* Removes a channel from a join string.
* Remove a channel from a join string.
*
* Channels with a key are first in list, so for example:
*
@@ -725,7 +723,7 @@ irc_join_remove_channel (struct t_irc_server *server,
}
/*
* Removes a channel from server autojoin option.
* Remove a channel from server autojoin option.
*/
void
@@ -752,7 +750,7 @@ irc_join_remove_channel_from_autojoin (struct t_irc_server *server,
}
/*
* Renames a channel in a join string: removes the channel then adds it (with
* Rename a channel in a join string: removes the channel then adds it (with
* its key, if set).
*
* Channels with a key are first in list, so for example:
@@ -842,7 +840,7 @@ irc_join_rename_channel (struct t_irc_server *server,
}
/*
* Renames a channel in a server autojoin option.
* Rename a channel in a server autojoin option.
*/
void
@@ -871,7 +869,7 @@ irc_join_rename_channel_in_autojoin (struct t_irc_server *server,
}
/*
* Saves currently joined channels in the autojoin option of a server.
* Save currently joined channels in the autojoin option of a server.
*/
void
@@ -918,7 +916,7 @@ irc_join_save_channels_to_autojoin (struct t_irc_server *server)
}
/*
* Sorts channels.
* Sort channels.
*/
char *
@@ -940,7 +938,7 @@ irc_join_sort_channels (struct t_irc_server *server, const char *join,
}
/*
* Sorts channels in autojoin option of a server.
* Sort channels in autojoin option of a server.
*/
void
+35 -35
View File
@@ -45,7 +45,7 @@ struct t_hashtable *irc_list_filter_hashtable_options = NULL;
/*
* Compares two channels in list.
* Compare two channels in list.
*/
int
@@ -89,7 +89,7 @@ irc_list_compare_cb (void *data, struct t_arraylist *arraylist,
}
/*
* Frees a channel in list.
* Free a channel in list.
*/
void
@@ -112,7 +112,7 @@ irc_list_free_cb (void *data, struct t_arraylist *arraylist, void *pointer)
}
/*
* Sets the local variable "filter" in the list buffer.
* Set the local variable "filter" in the list buffer.
*/
void
@@ -127,7 +127,7 @@ irc_list_buffer_set_localvar_filter (struct t_gui_buffer *buffer,
}
/*
* Sets filter for list of channels.
* Set filter for list of channels.
*/
void
@@ -146,7 +146,7 @@ irc_list_set_filter (struct t_irc_server *server, const char *filter)
}
/*
* Sets sort for list of channels.
* Set sort for list of channels.
*
*/
@@ -184,7 +184,7 @@ irc_list_set_sort (struct t_irc_server *server, const char *sort)
}
/*
* Adds the properties of an irc list channel in a hashtable
* Add the properties of an irc list channel in a hashtable
* (keys and values must be strings).
*/
@@ -202,13 +202,13 @@ irc_list_add_channel_in_hashtable (struct t_hashtable *hashtable,
}
/*
* Checks if a string matches a mask.
* Check if a string matches a mask.
*
* If mask has no "*" inside, it just checks if "mask" is inside the "string".
* If mask has at least one "*" inside, the function weechat_string_match is
* used.
*
* Returns:
* Return:
* 1: string matches mask
* 0: string does not match mask
*/
@@ -223,7 +223,7 @@ irc_list_string_match (const char *string, const char *mask)
}
/*
* Checks if a channel matches filter.
* Check if a channel matches filter.
*
* Return:
* 1: channel matches filter
@@ -319,7 +319,7 @@ irc_list_channel_match_filter (struct t_irc_server *server,
}
/*
* Filters channels: apply filter and use sort to build the list
* Filter channels: apply filter and use sort to build the list
* "filter_channels" that are pointers to t_irc_list_channel structs
* stored in main list "channels".
*/
@@ -362,11 +362,11 @@ irc_list_filter_channels (struct t_irc_server *server)
}
/*
* Parses output of redirected /list (string with raw IRC messages separated
* by newlines) and returns an arraylist of parsed channels, or NULL if no
* Parse output of redirected /list (string with raw IRC messages separated
* by newlines) and return an arraylist of parsed channels, or NULL if no
* valid message (322) was found in output.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -462,7 +462,7 @@ irc_list_parse_messages (struct t_irc_server *server, const char *output)
}
/*
* Sets title of list buffer.
* Set title of list buffer.
*/
void
@@ -494,7 +494,7 @@ irc_list_buffer_set_title (struct t_irc_server *server)
}
/*
* Displays a line.
* Display a line.
*/
void
@@ -553,7 +553,7 @@ irc_list_display_line (struct t_irc_server *server, int line)
}
/*
* Updates list of channels in list buffer.
* Update list of channels in list buffer.
*/
void
@@ -592,7 +592,7 @@ irc_list_buffer_refresh (struct t_irc_server *server, int clear)
}
/*
* Sets current selected line.
* Set current selected line.
*/
void
@@ -614,7 +614,7 @@ irc_list_set_current_line (struct t_irc_server *server, int line)
}
/*
* Gets info about a window.
* Get info about a window.
*/
void
@@ -650,7 +650,7 @@ irc_list_get_window_info (struct t_gui_window *window,
}
/*
* Checks if current line is outside window and adjusts scroll if needed.
* Check if current line is outside window and adjusts scroll if needed.
*/
void
@@ -737,7 +737,7 @@ irc_list_window_scrolled_cb (const void *pointer, void *data,
}
/*
* Moves N lines up/down in buffer
* Move N lines up/down in buffer
* (negative lines = move up, positive lines = move down).
*/
@@ -763,7 +763,7 @@ irc_list_move_line_relative (struct t_irc_server *server, int num_lines)
}
/*
* Moves to line N (0 = first line, -1 = last line).
* Move to line N (0 = first line, -1 = last line).
*/
void
@@ -788,7 +788,7 @@ irc_list_move_line_absolute (struct t_irc_server *server, int line_number)
}
/*
* Scrolls horizontally with percent
* Scroll horizontally with percent
* (negative: scroll to the left, positive: scroll to the right).
*/
@@ -815,7 +815,7 @@ irc_list_scroll_horizontal (struct t_irc_server *server, int percent)
}
/*
* Joins channel on current selected line.
* Join channel on current selected line.
*/
void
@@ -927,9 +927,9 @@ irc_list_buffer_input_data (struct t_gui_buffer *buffer, const char *input_data)
}
/*
* Creates buffer with list of channels for a server.
* Create buffer with list of channels for a server.
*
* Returns pointer to newly created buffer, NULL if error.
* Return pointer to newly created buffer, NULL if error.
*/
struct t_gui_buffer *
@@ -1064,9 +1064,9 @@ irc_list_hsignal_redirect_list_cb (const void *pointer,
}
/*
* Exports channels currently displayed in /list buffer.
* Export channels currently displayed in /list buffer.
*
* Returns:
* Return:
* 1: export OK
* 0: error
*/
@@ -1141,7 +1141,7 @@ irc_list_export (struct t_irc_server *server, const char *filename)
}
/*
* Resets lists used by list buffer.
* Reset lists used by list buffer.
*/
void
@@ -1165,7 +1165,7 @@ irc_list_reset (struct t_irc_server *server)
}
/*
* Frees a list structure in a server.
* Free a list structure in a server.
*/
struct t_irc_list *
@@ -1191,7 +1191,7 @@ irc_list_alloc (void)
}
/*
* Frees data in a list structure.
* Free data in a list structure.
*/
void
@@ -1231,7 +1231,7 @@ irc_list_free_data (struct t_irc_server *server)
}
/*
* Frees a list structure in a server.
* Free a list structure in a server.
*/
void
@@ -1250,7 +1250,7 @@ irc_list_free (struct t_irc_server *server)
}
/*
* Returns hdata for irc_list_channel.
* Return hdata for irc_list_channel.
*/
struct t_hdata *
@@ -1275,7 +1275,7 @@ irc_list_hdata_list_channel_cb (const void *pointer, void *data,
}
/*
* Returns hdata for irc_list.
* Return hdata for irc_list.
*/
struct t_hdata *
@@ -1348,7 +1348,7 @@ irc_list_mouse_hsignal_cb (const void *pointer, void *data, const char *signal,
}
/*
* Initializes irc list.
* Initialize IRC list.
*/
void
@@ -1409,7 +1409,7 @@ irc_list_init (void)
}
/*
* Ends irc list.
* End IRC list.
*/
void
+29 -30
View File
@@ -39,7 +39,7 @@
/*
* Parses command arguments and returns:
* Parse command arguments and return:
* - params (array of strings)
* - num_params (integer)
*
@@ -135,7 +135,7 @@ irc_message_parse_params (const char *parameters,
}
/*
* Parses an IRC message and returns:
* Parse an IRC message and return:
* - tags (string)
* - message without tags (string)
* - nick (string)
@@ -435,7 +435,7 @@ irc_message_parse (struct t_irc_server *server, const char *message,
}
/*
* Parses an IRC message and returns hashtable with keys:
* Parse an IRC message and return hashtable with keys:
* - tags
* - tag_xxx (one key per tag, with unescaped value)
* - message_without_tags
@@ -528,7 +528,7 @@ irc_message_parse_to_hashtable (struct t_irc_server *server,
}
/*
* Parses capability value.
* Parse capability value.
*
* For example for this capability:
* draft/multiline=max-bytes=4096,max-lines=24
@@ -587,7 +587,7 @@ irc_message_parse_cap_value (const char *value)
}
/*
* Parses "draft/multiline" cap value and extract:
* Parse "draft/multiline" cap value and extract:
* - max-bytes: maximum allowed total byte length of multiline batched content
* - max-lines: maximum allowed number of lines in a multiline batch content
*/
@@ -636,9 +636,9 @@ irc_message_parse_cap_multiline_value (struct t_irc_server *server,
}
/*
* Checks if a message is empty: either empty string or contains only newlines.
* Check if a message is empty: either empty string or contains only newlines.
*
* Returns:
* Return:
* 1: message is empty
* 0: message is NOT empty
*/
@@ -664,7 +664,7 @@ irc_message_is_empty (const char *message)
}
/*
* Encodes/decodes an IRC message using a charset.
* Encode/decode an IRC message using a charset.
*
* Note: result must be freed after use.
*/
@@ -700,7 +700,7 @@ irc_message_convert_charset (const char *message, int pos_start,
}
/*
* Gets nick from host in an IRC message.
* Get nick from host in an IRC message.
*/
const char *
@@ -749,7 +749,7 @@ irc_message_get_nick_from_host (const char *host)
}
/*
* Gets address from host in an IRC message.
* Get address from host in an IRC message.
*/
const char *
@@ -788,9 +788,9 @@ irc_message_get_address_from_host (const char *host)
}
/*
* Checks if a raw message is ignored (nick ignored on this server/channel).
* Check if a raw message is ignored (nick ignored on this server/channel).
*
* Returns:
* Return:
* 0: message not ignored (displayed)
* 1: message ignored (not displayed)
*/
@@ -846,7 +846,7 @@ irc_message_ignored (struct t_irc_server *server, const char *message)
}
/*
* Replaces special IRC vars ($nick, $channel, $server) in a string.
* Replace special IRC vars ($nick, $channel, $server) in a string.
*
* Note: result must be freed after use.
*/
@@ -888,7 +888,7 @@ irc_message_replace_vars (struct t_irc_server *server,
}
/*
* Hides password in text, if the target is a nick configured in option
* Hide password in text, if the target is a nick configured in option
* irc.look.nicks_hide_password.
*
* Note: result must be freed after use.
@@ -929,7 +929,7 @@ irc_message_hide_password (struct t_irc_server *server, const char *target,
}
/*
* Adds a message + arguments in hashtable.
* Add a message + arguments in hashtable.
*/
void
@@ -979,7 +979,7 @@ irc_message_split_add (struct t_irc_message_split_context *context,
}
/*
* Splits "arguments" using delimiter and max length.
* Split "arguments" using delimiter and max length.
*
* Examples of arguments for this function:
*
@@ -1005,7 +1005,7 @@ irc_message_split_add (struct t_irc_message_split_context *context,
* host + command + target + prefix + XXX + suffix
* (where XXX is part of "arguments")
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1113,10 +1113,10 @@ irc_message_split_string (struct t_irc_message_split_context *context,
}
/*
* Splits a AUTHENTICATE message: in 400-byte chunks, and adds an extra
* Split a AUTHENTICATE message: in 400-byte chunks, and add an extra
* message "AUTHENTICATE +" if the last message has exactly 400 bytes.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1167,10 +1167,9 @@ irc_message_split_authenticate (struct t_irc_message_split_context *context,
}
/*
* Splits a JOIN message, taking care of keeping channel keys with channel
* names.
* Split a JOIN message, taking care of keeping channel keys with channel names.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1289,7 +1288,7 @@ irc_message_split_join (struct t_irc_message_split_context *context,
}
/*
* Starts batch for multiline message.
* Start batch for multiline message.
*/
void
@@ -1311,7 +1310,7 @@ irc_message_start_batch (struct t_irc_message_split_context *context,
}
/*
* Ends batch for multiline message.
* End batch for multiline message.
*/
void
@@ -1331,13 +1330,13 @@ irc_message_end_batch (struct t_irc_message_split_context *context,
}
/*
* Splits a PRIVMSG or NOTICE message, taking care of keeping the '\001' char
* Split a PRIVMSG or NOTICE message, taking care of keeping the '\001' char
* used in CTCP messages.
*
* If multiline == 1, the message is split on newline chars ('\n') and is sent
* using BATCH command (to group messages together).
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1501,9 +1500,9 @@ irc_message_split_privmsg_notice (struct t_irc_message_split_context *context,
}
/*
* Splits a 005 message (isupport).
* Split a 005 message (isupport).
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1539,7 +1538,7 @@ irc_message_split_005 (struct t_irc_message_split_context *context,
}
/*
* Splits an IRC message about to be sent to IRC server.
* Split an IRC message about to be sent to IRC server.
*
* The maximum length of an IRC message is 510 bytes for user data + final
* "\r\n", so full size is 512 bytes (the user data does not include the
@@ -1561,7 +1560,7 @@ irc_message_split_005 (struct t_irc_message_split_context *context,
* Each message ("msgN") in hashtable has command and arguments, and then is
* ready to be sent to IRC server.
*
* Returns hashtable with split message.
* Return hashtable with split message.
*
* Note: result must be freed after use.
*/
+11 -12
View File
@@ -38,7 +38,7 @@
/*
* Gets mode arguments: skips colons before arguments and converts IRC color
* Get mode arguments: skip colons before arguments and convert IRC color
* codes into WeeChat color codes, so that the result can be displayed in a
* buffer.
*/
@@ -81,7 +81,7 @@ irc_mode_get_arguments_colors (const char *arguments)
}
/*
* Gets type of channel mode, which is a letter from 'A' to 'D':
* Get type of channel mode, which is a letter from 'A' to 'D':
* A = Mode that adds or removes a nick or address to a list. Always has a
* parameter.
* B = Mode that changes a setting and always has a parameter.
@@ -137,7 +137,7 @@ irc_mode_get_chanmode_type (struct t_irc_server *server, char chanmode)
}
/*
* Updates channel modes using the mode and argument.
* Update channel modes using the mode and argument.
*
* Example:
* if channel modes are "+tn" and that we have:
@@ -324,10 +324,10 @@ end:
}
/*
* Checks if a mode is smart filtered (according to option
* Check if a mode is smart filtered (according to option
* irc.look.smart_filter_mode and server prefix modes).
*
* Returns:
* Return:
* 1: the mode is smart filtered
* 0: the mode is NOT smart filtered
*/
@@ -366,10 +366,10 @@ irc_mode_smart_filtered (struct t_irc_server *server, char mode)
}
/*
* Sets channel modes using CHANMODES (from message 005) and update channel
* Set channel modes using CHANMODES (from message 005) and update channel
* modes if needed.
*
* Returns:
* Return:
* 1: the mode message can be "smart filtered"
* 0: the mode message must NOT be "smart filtered"
*/
@@ -570,7 +570,7 @@ irc_mode_channel_set (struct t_irc_server *server,
}
/*
* Adds a user mode.
* Add a user mode.
*/
void
@@ -622,7 +622,7 @@ irc_mode_user_add (struct t_irc_server *server, char mode)
}
/*
* Removes a user mode.
* Remove a user mode.
*/
void
@@ -654,7 +654,7 @@ irc_mode_user_remove (struct t_irc_server *server, char mode)
}
/*
* Sets user modes.
* Set user modes.
*/
void
@@ -709,8 +709,7 @@ irc_mode_user_set (struct t_irc_server *server, const char *modes,
}
/*
* Updates authentication_method when IRC_SERVER_OPTION_REGISTERED_MODE
* changes.
* Update authentication_method when IRC_SERVER_OPTION_REGISTERED_MODE changes.
*/
void
+26 -26
View File
@@ -36,9 +36,9 @@
/*
* Checks if a modelist pointer is valid for a channel.
* Check if a modelist pointer is valid for a channel.
*
* Returns:
* Return:
* 1: modelist exists for channel
* 0: modelist does not exist for channel
*/
@@ -64,9 +64,9 @@ irc_modelist_valid (struct t_irc_channel *channel,
}
/*
* Searches for a modelist by type.
* Search for a modelist by type.
*
* Returns pointer to modelist found, NULL if not found.
* Return pointer to modelist found, NULL if not found.
*/
struct t_irc_modelist *
@@ -87,9 +87,9 @@ irc_modelist_search (struct t_irc_channel *channel, char type)
}
/*
* Creates a new modelist in a channel.
* Create a new modelist in a channel.
*
* Returns pointer to new modelist, NULL if error.
* Return pointer to new modelist, NULL if error.
*/
struct t_irc_modelist *
@@ -126,7 +126,7 @@ irc_modelist_new (struct t_irc_channel *channel, char type)
}
/*
* Frees a modelist and remove it from channel.
* Free a modelist and remove it from channel.
*/
void
@@ -161,7 +161,7 @@ irc_modelist_free (struct t_irc_channel *channel,
}
/*
* Frees all modelists for a channel.
* Free all modelists for a channel.
*/
void
@@ -174,9 +174,9 @@ irc_modelist_free_all (struct t_irc_channel *channel)
}
/*
* Checks if a modelist item pointer is valid for a modelist.
* Check if a modelist item pointer is valid for a modelist.
*
* Returns:
* Return:
* 1: item exists for modelist
* 0: item does not exist for modelist
*/
@@ -202,9 +202,9 @@ irc_modelist_item_valid (struct t_irc_modelist *modelist,
}
/*
* Searches for an item by mask.
* Search for an item by mask.
*
* Returns pointer to item found, NULL if not found.
* Return pointer to item found, NULL if not found.
*/
struct t_irc_modelist_item *
@@ -225,9 +225,9 @@ irc_modelist_item_search_mask (struct t_irc_modelist *modelist, const char *mask
}
/*
* Searches for an item by number.
* Search for an item by number.
*
* Returns pointer to item found, NULL if not found.
* Return pointer to item found, NULL if not found.
*/
struct t_irc_modelist_item *
@@ -248,9 +248,9 @@ irc_modelist_item_search_number (struct t_irc_modelist *modelist, int number)
}
/*
* Creates a new item in a modelist.
* Create a new item in a modelist.
*
* Returns pointer to new item, NULL if error.
* Return pointer to new item, NULL if error.
*/
struct t_irc_modelist_item *
@@ -298,7 +298,7 @@ irc_modelist_item_new (struct t_irc_modelist *modelist,
}
/*
* Frees an item and remove it from modelist.
* Free an item and remove it from modelist.
*/
void
@@ -336,7 +336,7 @@ irc_modelist_item_free (struct t_irc_modelist *modelist,
}
/*
* Frees all items for a modelist.
* Free all items for a modelist.
*/
void
@@ -350,7 +350,7 @@ irc_modelist_item_free_all (struct t_irc_modelist *modelist)
}
/*
* Returns hdata for modelist item.
* Return hdata for modelist item.
*/
struct t_hdata *
@@ -378,7 +378,7 @@ irc_modelist_hdata_item_cb (const void *pointer, void *data,
}
/*
* Returns hdata for modelist.
* Return hdata for modelist.
*/
struct t_hdata *
@@ -405,9 +405,9 @@ irc_modelist_hdata_modelist_cb (const void *pointer, void *data, const char *hda
}
/*
* Adds a modelist item in an infolist.
* Add a modelist item in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -438,9 +438,9 @@ irc_modelist_item_add_to_infolist (struct t_infolist *infolist,
}
/*
* Adds a modelist in an infolist.
* Add a modelist in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -471,7 +471,7 @@ irc_modelist_add_to_infolist (struct t_infolist *infolist,
}
/*
* Prints modelist item infos in WeeChat log file (usually for crash dump).
* Print modelist item infos in WeeChat log file (usually for crash dump).
*/
void
@@ -488,7 +488,7 @@ irc_modelist_item_print_log (struct t_irc_modelist_item *item)
}
/*
* Prints modelist infos in WeeChat log file (usually for crash dump).
* Print modelist infos in WeeChat log file (usually for crash dump).
*/
void
+4 -4
View File
@@ -37,9 +37,9 @@
/*
* Gets pointer to option with IRC message.
* Get pointer to option with IRC message.
*
* Returns pointer to option found, NULL if not found.
* Return pointer to option found, NULL if not found.
*/
struct t_config_option *
@@ -73,7 +73,7 @@ irc_msgbuffer_get_option (struct t_irc_server *server, const char *message)
}
/*
* Gets target for IRC message.
* Get target for IRC message.
*
* Arguments:
* message: IRC message (for example: "invite", "312")
@@ -81,7 +81,7 @@ irc_msgbuffer_get_option (struct t_irc_server *server, const char *message)
* default_buffer: used if no target is defined (optional, by default server
* buffer is used).
*
* Returns pointer to buffer found, NULL if not found.
* Return pointer to buffer found, NULL if not found.
*/
struct t_gui_buffer *
+47 -47
View File
@@ -38,9 +38,9 @@
/*
* Checks if a nick pointer is valid.
* Check if a nick pointer is valid.
*
* Returns:
* Return:
* 1: nick exists in channel
* 0: nick does not exist in channel
*/
@@ -64,9 +64,9 @@ irc_nick_valid (struct t_irc_channel *channel, struct t_irc_nick *nick)
}
/*
* Checks if string is a valid nick string, using server UTF8MAPPING.
* Check if string is a valid nick string, using server UTF8MAPPING.
*
* Returns:
* Return:
* 1: string is a valid nick on this server
* 0: string is not a valid nick on this server
*/
@@ -135,9 +135,9 @@ irc_nick_is_nick (struct t_irc_server *server, const char *string)
}
/*
* Finds a color code for a nick (according to nick letters).
* Find a color code for a nick (according to nick letters).
*
* Returns a WeeChat color code (that can be used for display).
* Return a WeeChat color code (that can be used for display).
*/
char *
@@ -147,9 +147,9 @@ irc_nick_find_color (const char *nickname)
}
/*
* Finds a color name for a nick (according to nick letters).
* Find a color name for a nick (according to nick letters).
*
* Returns the name of a color (for example: "green").
* Return the name of a color (for example: "green").
*/
char *
@@ -159,7 +159,7 @@ irc_nick_find_color_name (const char *nickname)
}
/*
* Sets current prefix, using higher prefix set in prefixes.
* Set current prefix, using higher prefix set in prefixes.
*/
void
@@ -182,7 +182,7 @@ irc_nick_set_current_prefix (struct t_irc_nick *nick)
}
/*
* Sets/unsets a prefix in prefixes.
* Set/unset a prefix in prefixes.
*
* If set == 1, sets prefix (prefix is used).
* If set == 0, unsets prefix (space is used).
@@ -206,7 +206,7 @@ irc_nick_set_prefix (struct t_irc_server *server, struct t_irc_nick *nick,
}
/*
* Sets prefixes for nick.
* Set prefixes for nick.
*/
void
@@ -235,7 +235,7 @@ irc_nick_set_prefixes (struct t_irc_server *server, struct t_irc_nick *nick,
}
/*
* Sets host for nick.
* Set host for nick.
*/
void
@@ -257,9 +257,9 @@ irc_nick_set_host (struct t_irc_nick *nick, const char *host)
}
/*
* Checks if nick is "op" or above "op", like channel admin/owner.
* Check if nick is "op" or above "op", like channel admin/owner.
*
* Returns:
* Return:
* 1: nick is "op" or above
* 0: nick is not op
*/
@@ -280,11 +280,11 @@ irc_nick_is_op_or_higher (struct t_irc_server *server, struct t_irc_nick *nick)
}
/*
* Checks if nick prefixes contains prefix for a given mode.
* Check if nick prefixes contains prefix for a given mode.
*
* For example if prefix_mode is 'o', searches for '@' in nick prefixes.
*
* Returns:
* Return:
* 1: prefixes contains prefix for the given mode
* 0: prefixes does not contain prefix for the given mode.
*/
@@ -303,7 +303,7 @@ irc_nick_has_prefix_mode (struct t_irc_server *server, struct t_irc_nick *nick,
}
/*
* Gets nicklist group for a nick.
* Get nicklist group for a nick.
*/
struct t_gui_nick_group *
@@ -338,7 +338,7 @@ irc_nick_get_nicklist_group (struct t_irc_server *server,
}
/*
* Gets name of prefix color for a nick.
* Get name of prefix color for a nick.
*/
const char *
@@ -378,7 +378,7 @@ irc_nick_get_prefix_color_name (struct t_irc_server *server, char prefix)
}
/*
* Gets nick color for nicklist.
* Get nick color for nicklist.
*/
char *
@@ -404,7 +404,7 @@ irc_nick_get_color_for_nicklist (struct t_irc_server *server,
}
/*
* Adds a nick to buffer nicklist.
* Add a nick to buffer nicklist.
*/
void
@@ -427,7 +427,7 @@ irc_nick_nicklist_add (struct t_irc_server *server,
}
/*
* Removes a nick from buffer nicklist.
* Remove a nick from buffer nicklist.
*/
void
@@ -445,7 +445,7 @@ irc_nick_nicklist_remove (struct t_irc_server *server,
}
/*
* Sets a property for nick in buffer nicklist.
* Set a property for nick in buffer nicklist.
*/
void
@@ -463,7 +463,7 @@ irc_nick_nicklist_set (struct t_irc_channel *channel,
}
/*
* Sets nick prefix colors in nicklist for all servers/channels.
* Set nick prefix colors in nicklist for all servers/channels.
*/
void
@@ -491,7 +491,7 @@ irc_nick_nicklist_set_prefix_color_all (void)
}
/*
* Sets nick colors in nicklist for all servers/channels.
* Set nick colors in nicklist for all servers/channels.
*/
void
@@ -520,13 +520,13 @@ irc_nick_nicklist_set_color_all (void)
}
/*
* Adds a new nick in channel, but do not update the buffer nicklist.
* Add a new nick in channel, but do not update the buffer nicklist.
* This function is only called by the function `irc_nick_new` (below) and
* when restoring nicks after upgrade: in this case we want to just add nick
* in channel nicks without changing anything in the buffer nicklist,
* to preserve same identifiers).
*
* Returns pointer to new nick, NULL if error.
* Return pointer to new nick, NULL if error.
*/
struct t_irc_nick *
@@ -590,9 +590,9 @@ irc_nick_new_in_channel (struct t_irc_server *server,
}
/*
* Adds a new nick in channel.
* Add a new nick in channel.
*
* Returns pointer to new nick, NULL if error.
* Return pointer to new nick, NULL if error.
*/
struct t_irc_nick *
@@ -637,7 +637,7 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
}
/*
* Changes nickname.
* Change nickname.
*/
void
@@ -668,7 +668,7 @@ irc_nick_change (struct t_irc_server *server, struct t_irc_channel *channel,
}
/*
* Sets a mode for a nick.
* Set a mode for a nick.
*/
void
@@ -701,7 +701,7 @@ irc_nick_set_mode (struct t_irc_server *server, struct t_irc_channel *channel,
}
/*
* Reallocates the "prefixes" string in all nicks of all channels on the server
* Reallocate the "prefixes" string in all nicks of all channels on the server
* (after 005 has been received).
*/
@@ -748,7 +748,7 @@ irc_nick_realloc_prefixes (struct t_irc_server *server,
}
/*
* Removes a nick from a channel.
* Remove a nick from a channel.
*/
void
@@ -795,7 +795,7 @@ irc_nick_free (struct t_irc_server *server, struct t_irc_channel *channel,
}
/*
* Removes all nicks from a channel.
* Remove all nicks from a channel.
*/
void
@@ -821,9 +821,9 @@ irc_nick_free_all (struct t_irc_server *server, struct t_irc_channel *channel)
}
/*
* Searches for a nick in a channel.
* Search for a nick in a channel.
*
* Returns pointer to nick found, NULL if error.
* Return pointer to nick found, NULL if error.
*/
struct t_irc_nick *
@@ -847,7 +847,7 @@ irc_nick_search (struct t_irc_server *server, struct t_irc_channel *channel,
}
/*
* Returns number of nicks per mode on a channel, as an array of integers
* Return number of nicks per mode on a channel, as an array of integers
* whose size is the number of modes + 1 (for regular users).
*
* For example if modes == "ohv", the array returned has a size of 4, with:
@@ -910,7 +910,7 @@ irc_nick_count (struct t_irc_server *server, struct t_irc_channel *channel,
}
/*
* Sets/unsets away status for a nick.
* Set/unset away status for a nick.
*/
void
@@ -929,9 +929,9 @@ irc_nick_set_away (struct t_irc_server *server, struct t_irc_channel *channel,
}
/*
* Gets nick mode for display (color + mode).
* Get nick mode for display (color + mode).
*
* If prefix == 1, returns string for display in prefix, otherwise returns
* If prefix == 1, return string for display in prefix, otherwise return
* string for display in action message (/me).
*/
@@ -982,7 +982,7 @@ irc_nick_mode_for_display (struct t_irc_server *server, struct t_irc_nick *nick,
}
/*
* Returns string with nick to display as prefix on buffer (returned string ends
* Return string with nick to display as prefix on buffer (returned string ends
* by a tab).
*/
@@ -1013,7 +1013,7 @@ irc_nick_as_prefix (struct t_irc_server *server, struct t_irc_nick *nick,
}
/*
* Returns WeeChat color code for a nick.
* Return WeeChat color code for a nick.
*/
const char *
@@ -1053,7 +1053,7 @@ irc_nick_color_for_msg (struct t_irc_server *server, int server_message,
}
/*
* Returns string with color of nick for private.
* Return string with color of nick for private.
*/
const char *
@@ -1071,7 +1071,7 @@ irc_nick_color_for_pv (struct t_irc_channel *channel, const char *nickname)
}
/*
* Returns default ban mask for the nick.
* Return default ban mask for the nick.
*
* Note: result must be freed after use (if not NULL).
*/
@@ -1131,7 +1131,7 @@ irc_nick_default_ban_mask (struct t_irc_nick *nick)
}
/*
* Returns hdata for nick.
* Return hdata for nick.
*/
struct t_hdata *
@@ -1163,9 +1163,9 @@ irc_nick_hdata_nick_cb (const void *pointer, void *data,
}
/*
* Adds a nick in an infolist.
* Add a nick in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1204,7 +1204,7 @@ irc_nick_add_to_infolist (struct t_infolist *infolist,
}
/*
* Prints nick infos in WeeChat log file (usually for crash dump).
* Print nick infos in WeeChat log file (usually for crash dump).
*/
void
+29 -31
View File
@@ -46,11 +46,11 @@ struct t_hook *irc_notify_hsignal = NULL;
/*
* Checks if a notify pointer is valid.
* Check if a notify pointer is valid.
*
* If server is NULL, searches in all servers.
* If server is NULL, search in all servers.
*
* Returns:
* Return:
* 1: notify exists
* 0: notify does not exist
*/
@@ -92,9 +92,9 @@ irc_notify_valid (struct t_irc_server *server, struct t_irc_notify *notify)
}
/*
* Searches for a notify.
* Search for a notify.
*
* Returns pointer to notify found, NULL if not found.
* Return pointer to notify found, NULL if not found.
*/
struct t_irc_notify *
@@ -117,7 +117,7 @@ irc_notify_search (struct t_irc_server *server, const char *nick)
}
/*
* Sets server option "notify" with notify list on server.
* Set server option "notify" with notify list on server.
*/
void
@@ -180,9 +180,9 @@ irc_notify_set_server_option (struct t_irc_server *server)
}
/*
* Adds a new notify.
* Add a new notify.
*
* Returns pointer to new notify, NULL if error.
* Return pointer to new notify, NULL if error.
*/
struct t_irc_notify *
@@ -223,7 +223,7 @@ irc_notify_new (struct t_irc_server *server, const char *nick, int check_away)
}
/*
* Checks now if a nick is connected with ison/monitor + whois (if away checking
* Check now if a nick is connected with ison/monitor + whois (if away checking
* is enabled).
*
* It is called when a notify is added.
@@ -261,7 +261,7 @@ irc_notify_check_now (struct t_irc_notify *notify)
}
/*
* Builds a message with nicks (ISON or MONITOR).
* Build a message with nicks (ISON or MONITOR).
*
* Argument "message" must be "ISON :" or "MONITOR + " or "MONITOR - ".
* Argument "separator" must be " " for ISON and "," for MONITOR.
@@ -301,7 +301,7 @@ irc_notify_build_message_with_nicks (struct t_irc_server *server,
}
/*
* Sends the MONITOR message (after server connection or if the option
* Send the MONITOR message (after server connection or if the option
* "irc.server.xxx.notify" is changed).
*/
@@ -342,7 +342,7 @@ irc_notify_send_monitor (struct t_irc_server *server)
}
/*
* Creates a notify list for server with option "irc.server.xxx.notify".
* Create a notify list for server with option "irc.server.xxx.notify".
*/
void
@@ -407,7 +407,7 @@ irc_notify_new_for_server (struct t_irc_server *server)
}
/*
* Creates a notify list for all servers with option "irc.server.xxx.notify".
* Create a notify list for all servers with option "irc.server.xxx.notify".
*/
void
@@ -423,7 +423,7 @@ irc_notify_new_for_all_servers (void)
}
/*
* Removes a notify on a server.
* Remove a notify on a server.
*/
void
@@ -472,7 +472,7 @@ irc_notify_free (struct t_irc_server *server, struct t_irc_notify *notify,
}
/*
* Removes all notify on a server.
* Remove all notify on a server.
*/
void
@@ -494,7 +494,7 @@ irc_notify_free_all (struct t_irc_server *server)
}
/*
* Displays a notify.
* Display a notify.
*/
void
@@ -542,7 +542,7 @@ irc_notify_display (struct t_irc_server *server, struct t_gui_buffer *buffer,
}
/*
* Displays notify list for a server (or all servers if server is NULL).
* Display notify list for a server (or all servers if server is NULL).
*/
void
@@ -601,7 +601,7 @@ irc_notify_display_list (struct t_irc_server *server)
}
/*
* Gets tags for message displayed (concatenation of "irc_notify" and tags from
* Get tags for message displayed (concatenation of "irc_notify" and tags from
* option).
*/
@@ -625,7 +625,7 @@ irc_notify_get_tags (struct t_config_option *option, const char *type,
}
/*
* Sends a signal on a notify event.
* Send a signal on a notify event.
*/
void
@@ -689,8 +689,7 @@ irc_notify_display_is_on (struct t_irc_server *server,
}
/*
* Sets flag "is_on_server" for a notify and display message if user was not on
* server.
* Set flag "is_on_server" for a notify and display message if user was not on server.
*/
void
@@ -713,8 +712,7 @@ irc_notify_set_is_on_server (struct t_irc_notify *notify, const char *host,
}
/*
* Sets away message for a notify and display message if away status has
* changed.
* Set away message for a notify and display message if away status has changed.
*/
void
@@ -1137,7 +1135,7 @@ irc_notify_timer_whois_cb (const void *pointer, void *data,
}
/*
* Returns hdata for notify.
* Return hdata for notify.
*/
struct t_hdata *
@@ -1167,9 +1165,9 @@ irc_notify_hdata_notify_cb (const void *pointer, void *data,
}
/*
* Adds a notify in an infolist.
* Add a notify in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1204,7 +1202,7 @@ irc_notify_add_to_infolist (struct t_infolist *infolist,
}
/*
* Prints notify infos in WeeChat log file (usually for crash dump).
* Print notify infos in WeeChat log file (usually for crash dump).
*/
void
@@ -1229,7 +1227,7 @@ irc_notify_print_log (struct t_irc_server *server)
}
/*
* Hooks timer to send "ison" command.
* Hook timer to send "ison" command.
*/
void
@@ -1242,7 +1240,7 @@ irc_notify_hook_timer_ison (void)
}
/*
* Hooks timer to send "whois" command.
* Hook timer to send "whois" command.
*/
void
@@ -1255,7 +1253,7 @@ irc_notify_hook_timer_whois (void)
}
/*
* Hooks timers and hsignal.
* Hook timers and hsignal.
*/
void
@@ -1270,7 +1268,7 @@ irc_notify_init (void)
}
/*
* Removes timers and hsignal.
* Remove timers and hsignal.
*/
void
+17 -18
View File
@@ -66,7 +66,7 @@
/*
* Frees data in structure t_irc_protocol_ctxt.
* Free data in structure t_irc_protocol_ctxt.
*/
void
@@ -111,9 +111,9 @@ irc_protocol_ctxt_free_data (struct t_irc_protocol_ctxt *ctxt)
}
/*
* Checks if a command is numeric.
* Check if a command is numeric.
*
* Returns:
* Return:
* 1: all chars are numeric
* 0: command has other chars (not numeric)
*/
@@ -135,7 +135,7 @@ irc_protocol_is_numeric_command (const char *command)
}
/*
* Gets log level for IRC command.
* Get log level for IRC command.
*/
int
@@ -161,7 +161,7 @@ irc_protocol_log_level_for_command (const char *command)
}
/*
* Adds IRC tag key/value in a dynamic string.
* Add IRC tag key/value in a dynamic string.
*
* As commas are not allowed in WeeChat tags, they are replaced by semicolons.
*/
@@ -204,7 +204,7 @@ irc_protocol_tags_add_cb (void *data,
}
/*
* Builds tags list with IRC command and optional tags and nick.
* Build tags list with IRC command and optional tags and nick.
*/
const char *
@@ -323,13 +323,13 @@ irc_protocol_tags (struct t_irc_protocol_ctxt *ctxt, const char *extra_tags)
}
/*
* Builds a string with nick and optional address.
* Build a string with nick and optional address.
*
* If server_message is 1, the nick is colored according to option
* If server_message is 1, color nick according to option
* irc.look.color_nicks_in_server_messages.
*
* Argument nickname is mandatory, address can be NULL.
* If nickname and address are NULL, an empty string is returned.
* If nickname and address are NULL, return an empty string.
*/
const char *
@@ -372,7 +372,7 @@ irc_protocol_nick_address (struct t_irc_server *server,
}
/*
* Builds a string with concatenation of IRC command parameters, from
* Build a string with concatenation of IRC command parameters, from
* arg_start to arg_end.
*
* Note: result must be freed after use.
@@ -389,7 +389,7 @@ irc_protocol_string_params (char **params, int arg_start, int arg_end)
}
/*
* Prints a FAIL/WARN/NOTE command.
* Print a FAIL/WARN/NOTE command.
*
* Called by callbacks for commands: FAIL, WARN, NOTE.
*
@@ -797,7 +797,7 @@ irc_protocol_cap_to_enable (const char *capabilities, int sasl_requested)
}
/*
* Requests capabilities for IRC server after synchronization.
* Request capabilities for IRC server after synchronization.
*/
void
@@ -842,7 +842,7 @@ irc_protocol_cap_sync_req (struct t_irc_server *server,
}
/*
* Synchronizes requested capabilities for IRC server.
* Synchronize requested capabilities for IRC server.
*/
void
@@ -3017,8 +3017,7 @@ IRC_PROTOCOL_CALLBACK(pong)
}
/*
* Displays a CTCP sent, that was received by PRIVMSG if the origin nick
* is self.
* Display a CTCP sent, that was received by PRIVMSG if the origin nick is self.
*
* Parameter "arguments" is the message arguments, for example:
*
@@ -6395,7 +6394,7 @@ IRC_PROTOCOL_CALLBACK(354)
}
/*
* Returns a string with the list of nicks on a channel.
* Return a string with the list of nicks on a channel.
*
* If filter is NULL, all nicks are displayed.
* Otherwise first char of filter is a mode:
@@ -6523,7 +6522,7 @@ irc_protocol_get_string_channel_nicks (struct t_irc_server *server,
}
/*
* Returns a string with the count of nicks per mode on a channel.
* Return a string with the count of nicks per mode on a channel.
*
* Note: result must be freed after use.
*/
@@ -7881,7 +7880,7 @@ IRC_PROTOCOL_CALLBACK(sasl_end_fail)
}
/*
* Executes action when an IRC command is received.
* Execute action when an IRC command is received.
*
* Argument "irc_message" is the full message without optional tags.
*
+23 -24
View File
@@ -48,13 +48,12 @@ struct t_hashtable *irc_raw_filter_hashtable_options = NULL;
/*
* Checks if a string matches a mask.
* Check if a string matches a mask.
*
* If mask has no "*" inside, it just checks if "mask" is inside the "string".
* If mask has at least one "*" inside, the function weechat_string_match is
* used.
* If mask has no "*" inside, check if "mask" is inside the "string".
* If mask has at least one "*" inside, use the function weechat_string_match.
*
* Returns:
* Return:
* 1: string matches mask
* 0: string does not match mask
*/
@@ -69,9 +68,9 @@ irc_raw_message_string_match (const char *string, const char *mask)
}
/*
* Checks if a messages is matching current filter(s).
* Check if a messages is matching current filter(s).
*
* Returns:
* Return:
* 1: message is matching filter(s)
* 0: message does not match filter(s)
*/
@@ -189,7 +188,7 @@ irc_raw_message_match_filter (struct t_irc_raw_message *raw_message,
}
/*
* Prints an irc raw message.
* Print an irc raw message.
*/
void
@@ -313,7 +312,7 @@ irc_raw_message_print (struct t_irc_raw_message *raw_message)
}
/*
* Sets the local variable "filter" in the irc raw buffer.
* Set the local variable "filter" in the irc raw buffer.
*/
void
@@ -327,7 +326,7 @@ irc_raw_set_localvar_filter (void)
}
/*
* Sets title of irc raw buffer.
* Set title of irc raw buffer.
*/
void
@@ -346,7 +345,7 @@ irc_raw_set_title (void)
}
/*
* Updates list of messages in raw buffer.
* Update list of messages in raw buffer.
*/
void
@@ -371,7 +370,7 @@ irc_raw_refresh (int clear)
}
/*
* Opens IRC raw buffer.
* Open IRC raw buffer.
*/
void
@@ -427,7 +426,7 @@ irc_raw_open (int switch_to_buffer)
}
/*
* Sets the raw messages filter.
* Set the raw messages filter.
*/
void
@@ -440,7 +439,7 @@ irc_raw_set_filter (const char *filter)
}
/*
* Filters raw messages.
* Filter raw messages.
*/
void
@@ -452,7 +451,7 @@ irc_raw_filter_options (const char *filter)
}
/*
* Frees a raw message and removes it from list.
* Free a raw message and removes it from list.
*/
void
@@ -488,7 +487,7 @@ irc_raw_message_free (struct t_irc_raw_message *raw_message)
}
/*
* Frees all raw messages.
* Free all raw messages.
*/
void
@@ -501,7 +500,7 @@ irc_raw_message_free_all (void)
}
/*
* Removes old raw messages if limit has been reached.
* Remove old raw messages if limit has been reached.
*/
void
@@ -517,9 +516,9 @@ irc_raw_message_remove_old (void)
}
/*
* Adds a new raw message to list.
* Add a new raw message to list.
*
* Returns pointer to new raw message, NULL if error.
* Return pointer to new raw message, NULL if error.
*/
struct t_irc_raw_message *
@@ -559,7 +558,7 @@ irc_raw_message_add_to_list (time_t date, int date_usec,
}
/*
* Prints a message on IRC raw buffer.
* Print a message on IRC raw buffer.
*/
void
@@ -606,9 +605,9 @@ irc_raw_print (struct t_irc_server *server, int flags,
}
/*
* Adds a raw message in an infolist.
* Add a raw message in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -641,7 +640,7 @@ irc_raw_add_to_infolist (struct t_infolist *infolist,
}
/*
* Initializes irc raw.
* Initialize IRC raw.
*/
void
@@ -660,7 +659,7 @@ irc_raw_init (void)
}
/*
* Ends irc raw.
* End IRC raw.
*/
void
+31 -32
View File
@@ -253,9 +253,9 @@ struct t_irc_redirect_pattern irc_redirect_patterns_default[] =
/*
* Searches for a redirect pattern in list of patterns.
* Search for a redirect pattern in list of patterns.
*
* Returns pointer to redirect pattern found, NULL if not found.
* Return pointer to redirect pattern found, NULL if not found.
*/
struct t_irc_redirect_pattern *
@@ -278,9 +278,9 @@ irc_redirect_pattern_search (const char *name)
}
/*
* Creates a new redirect pattern.
* Create a new redirect pattern.
*
* Returns pointer to new redirect pattern, NULL if error.
* Return pointer to new redirect pattern, NULL if error.
*/
struct t_irc_redirect_pattern *
@@ -338,7 +338,7 @@ irc_redirect_pattern_new (const char *name, int temp_pattern, int timeout,
}
/*
* Frees a redirect pattern and removes it from list.
* Free a redirect pattern and removes it from list.
*/
void
@@ -375,7 +375,7 @@ irc_redirect_pattern_free (struct t_irc_redirect_pattern *redirect_pattern)
}
/*
* Frees all redirect patterns.
* Free all redirect patterns.
*/
void
@@ -388,10 +388,10 @@ irc_redirect_pattern_free_all (void)
}
/*
* Creates a new redirect for a command on a server (with start/stop/extra
* Create a new redirect for a command on a server (with start/stop/extra
* commands in arguments).
*
* Returns pointer to new redirect, NULL if error.
* Return pointer to new redirect, NULL if error.
*/
struct t_irc_redirect *
@@ -514,9 +514,9 @@ irc_redirect_new_with_commands (struct t_irc_server *server,
}
/*
* Creates a new redirect for a command on a server.
* Create a new redirect for a command on a server.
*
* Returns pointer to new redirect, NULL if error.
* Return pointer to new redirect, NULL if error.
*/
struct t_irc_redirect *
@@ -584,9 +584,9 @@ irc_redirect_new (struct t_irc_server *server,
}
/*
* Searches for first redirect available for server.
* Search for first redirect available for server.
*
* Returns pointer to redirect found, NULL if not found.
* Return pointer to redirect found, NULL if not found.
*/
struct t_irc_redirect *
@@ -609,7 +609,7 @@ irc_redirect_search_available (struct t_irc_server *server)
}
/*
* Initializes a redirect with IRC command sent to server.
* Initialize a redirect with IRC command sent to server.
*/
void
@@ -649,9 +649,9 @@ irc_redirect_init_command (struct t_irc_redirect *redirect,
}
/*
* Checks if a message matches hashtable with commands.
* Check if a message matches hashtable with commands.
*
* Returns:
* Return:
* 1: message matches hashtable
* 0: message does not match hashtable
*/
@@ -685,7 +685,7 @@ irc_redirect_message_match_hash (struct t_irc_redirect *redirect,
}
/*
* Adds a message to redirect output.
* Add a message to redirect output.
*/
void
@@ -729,7 +729,7 @@ irc_redirect_message_add (struct t_irc_redirect *redirect, const char *message,
}
/*
* Ends a redirection: sends data to callback and frees redirect (if count has
* End a redirection: sends data to callback and frees redirect (if count has
* been reached).
*/
@@ -788,10 +788,9 @@ irc_redirect_stop (struct t_irc_redirect *redirect, const char *error)
}
/*
* Tries to redirect a received message (from IRC server) to a redirect in
* server.
* Try to redirect a received message (from IRC server) to a redirect in server.
*
* Returns:
* Return:
* 1: message has been redirected (irc plugin will discard message)
* 0: no matching redirect was found
*/
@@ -930,7 +929,7 @@ end:
}
/*
* Frees a redirect and removes it from list.
* Free a redirect and removes it from list.
*/
void
@@ -988,7 +987,7 @@ irc_redirect_free (struct t_irc_redirect *redirect)
}
/*
* Frees all redirects in list.
* Free all redirects in list.
*/
void
@@ -1001,7 +1000,7 @@ irc_redirect_free_all (struct t_irc_server *server)
}
/*
* Returns hdata for redirect pattern.
* Return hdata for redirect pattern.
*/
struct t_hdata *
@@ -1033,7 +1032,7 @@ irc_redirect_hdata_redirect_pattern_cb (const void *pointer, void *data,
}
/*
* Returns hdata for redirect.
* Return hdata for redirect.
*/
struct t_hdata *
@@ -1075,9 +1074,9 @@ irc_redirect_hdata_redirect_cb (const void *pointer, void *data,
}
/*
* Adds a redirect pattern in an infolist.
* Add a redirect pattern in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1112,9 +1111,9 @@ irc_redirect_pattern_add_to_infolist (struct t_infolist *infolist,
}
/*
* Adds a redirect in an infolist.
* Add a redirect in an infolist.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -1175,7 +1174,7 @@ irc_redirect_add_to_infolist (struct t_infolist *infolist,
}
/*
* Prints redirect infos in WeeChat log file (usually for crash dump).
* Print redirect infos in WeeChat log file (usually for crash dump).
*/
void
@@ -1200,7 +1199,7 @@ irc_redirect_pattern_print_log (void)
}
/*
* Prints redirect infos in WeeChat log file (usually for crash dump).
* Print redirect infos in WeeChat log file (usually for crash dump).
*/
void
@@ -1389,7 +1388,7 @@ irc_redirect_command_hsignal_cb (const void *pointer, void *data,
}
/*
* Creates default redirect patterns.
* Create default redirect patterns.
*/
void
@@ -1409,7 +1408,7 @@ irc_redirect_init (void)
}
/*
* Frees all redirect patterns.
* Free all redirect patterns.
*/
void
+5 -5
View File
@@ -47,7 +47,7 @@ char *irc_sasl_mechanism_string[IRC_NUM_SASL_MECHANISMS] =
/*
* Builds answer for SASL authentication, using mechanism "PLAIN".
* Build answer for SASL authentication, using mechanism "PLAIN".
*
* Note: result must be freed after use.
*/
@@ -92,7 +92,7 @@ irc_sasl_mechanism_plain (const char *sasl_username, const char *sasl_password)
}
/*
* Builds answer for SASL authentication, using mechanism
* Build answer for SASL authentication, using mechanism
* "SCRAM-SHA-1", "SCRAM-SHA-256" or "SCRAM-SHA-512".
*
* If an error occurs or is received from the server, and if sasl_error is
@@ -448,7 +448,7 @@ end:
}
/*
* Returns the content of file with SASL key.
* Return the content of file with SASL key.
*
* If the file is not found and sasl_error is not NULL, *sasl_error is set to
* the error and must be freed after use.
@@ -494,7 +494,7 @@ irc_sasl_get_key_content (const char *sasl_key, char **sasl_error)
}
/*
* Builds answer for SASL authentication, using mechanism
* Build answer for SASL authentication, using mechanism
* "ECDSA-NIST256P-CHALLENGE".
*
* If an error occurs and if sasl_error is not NULL, *sasl_error is set to the
@@ -686,7 +686,7 @@ irc_sasl_mechanism_ecdsa_nist256p_challenge (struct t_irc_server *server,
}
/*
* Builds answer for SASL authentication, using mechanism "EXTERNAL".
* Build answer for SASL authentication, using mechanism "EXTERNAL".
*
* Note: result must be freed after use.
*/
+135 -136
View File
@@ -165,9 +165,9 @@ void irc_server_autojoin_create_buffers (struct t_irc_server *server);
/*
* Checks if a server pointer is valid.
* Check if a server pointer is valid.
*
* Returns:
* Return:
* 1: server exists
* 0: server does not exist
*/
@@ -192,9 +192,9 @@ irc_server_valid (struct t_irc_server *server)
}
/*
* Searches for a server by name.
* Search for a server by name.
*
* Returns pointer to server found, NULL if not found.
* Return pointer to server found, NULL if not found.
*/
struct t_irc_server *
@@ -217,9 +217,9 @@ irc_server_search (const char *server_name)
}
/*
* Searches for a server option name.
* Search for a server option name.
*
* Returns index of option in array "irc_server_option_string", -1 if not found.
* Return index of option in array "irc_server_option_string", -1 if not found.
*/
int
@@ -241,9 +241,9 @@ irc_server_search_option (const char *option_name)
}
/*
* Searches for a casemapping.
* Search for a casemapping.
*
* Returns index of casemapping in array "irc_server_casemapping_string",
* Return index of casemapping in array "irc_server_casemapping_string",
* -1 if not found.
*/
@@ -266,9 +266,9 @@ irc_server_search_casemapping (const char *casemapping)
}
/*
* Searches for a utf8mapping.
* Search for a utf8mapping.
*
* Returns index of utf8mapping in array "irc_server_utf8mapping_string",
* Return index of utf8mapping in array "irc_server_utf8mapping_string",
* -1 if not found.
*/
@@ -291,9 +291,9 @@ irc_server_search_utf8mapping (const char *utf8mapping)
}
/*
* Compares two strings on server (case-insensitive, depends on casemapping).
* Compare two strings on server (case-insensitive, depends on casemapping).
*
* Returns:
* Return:
* < 0: string1 < string2
* 0: string1 == string2
* > 0: string1 > string2
@@ -315,10 +315,10 @@ irc_server_strcasecmp (struct t_irc_server *server,
}
/*
* Compares two strings on server (case-insensitive, depends on casemapping)
* Compare two strings on server (case-insensitive, depends on casemapping)
* for max chars.
*
* Returns:
* Return:
* < 0: string1 < string2
* 0: string1 == string2
* > 0: string1 > string2
@@ -340,11 +340,11 @@ irc_server_strncasecmp (struct t_irc_server *server,
}
/*
* Evaluates a string using the server as context:
* Evaluate a string using the server as context:
* ${irc_server.xxx} and ${server} are replaced by a server option and the
* server name.
*
* Returns the evaluated string.
* Return the evaluated string.
*
* Note: result must be freed after use.
*/
@@ -390,9 +390,9 @@ irc_server_eval_expression (struct t_irc_server *server, const char *string)
}
/*
* Searches for a fingerprint digest algorithm with the size (in bits).
* Search for a fingerprint digest algorithm with the size (in bits).
*
* Returns index of algo in enum t_irc_fingerprint_digest_algo,
* Return index of algo in enum t_irc_fingerprint_digest_algo,
* -1 if not found.
*/
@@ -412,9 +412,9 @@ irc_server_fingerprint_search_algo_with_size (int size)
}
/*
* Evaluates and returns the fingerprint.
* Evaluate and return the fingerprint.
*
* Returns the evaluated fingerprint, NULL if the fingerprint option is
* Return the evaluated fingerprint, NULL if the fingerprint option is
* invalid.
*
* Note: result must be freed after use.
@@ -513,7 +513,7 @@ irc_server_eval_fingerprint (struct t_irc_server *server)
}
/*
* Gets SASL credentials on server (uses temporary SASL username/password if
* Get SASL credentials on server (uses temporary SASL username/password if
* set by the command /auth <user> <pass>).
*/
@@ -540,9 +540,9 @@ irc_server_sasl_get_creds (struct t_irc_server *server,
}
/*
* Checks if SASL is enabled on server.
* Check if SASL is enabled on server.
*
* Returns:
* Return:
* 1: SASL is enabled
* 0: SASL is disabled
*/
@@ -580,7 +580,7 @@ irc_server_sasl_enabled (struct t_irc_server *server)
}
/*
* Gets name of server without port (ends before first '/' if found).
* Get name of server without port (ends before first '/' if found).
*
* Note: result must be freed after use.
*/
@@ -601,7 +601,7 @@ irc_server_get_name_without_port (const char *name)
}
/*
* Gets a string with description of server, that includes:
* Get a string with description of server, that includes:
* - addresses + ports
* - fake server?
* - TLS option (enabled/disabled).
@@ -660,14 +660,14 @@ irc_server_get_short_description (struct t_irc_server *server)
}
/*
* Sets addresses for server.
* Set addresses for server.
*
* The "tls" is the boolean value of option ".tls" in server, used to find the
* default port if not specified in the address:
* - 6697 if tls is 1
* - 6667 if tls is 0
*
* Returns:
* Return:
* 1: addresses have been set (changed)
* 0: nothing set (addresses unchanged)
*/
@@ -774,7 +774,7 @@ irc_server_set_addresses (struct t_irc_server *server, const char *addresses,
}
/*
* Sets index of current address for server.
* Set index of current address for server.
*/
void
@@ -819,7 +819,7 @@ irc_server_set_index_current_address (struct t_irc_server *server, int index)
}
/*
* Sets nicks for server.
* Set nicks for server.
*/
void
@@ -853,7 +853,7 @@ irc_server_set_nicks (struct t_irc_server *server, const char *nicks)
}
/*
* Sets nickname for server.
* Set nickname for server.
*/
void
@@ -883,7 +883,7 @@ irc_server_set_nick (struct t_irc_server *server, const char *nick)
}
/*
* Sets host for server.
* Set host for server.
*/
void
@@ -916,9 +916,9 @@ irc_server_set_host (struct t_irc_server *server, const char *host)
}
/*
* Gets index of nick in array "nicks_array".
* Get index of nick in array "nicks_array".
*
* Returns index of nick in array, -1 if nick is not set or not found in
* Return index of nick in array, -1 if nick is not set or not found in
* "nicks_array".
*/
@@ -943,7 +943,7 @@ irc_server_get_nick_index (struct t_irc_server *server)
}
/*
* Gets an alternate nick when the nick is already used on server.
* Get an alternate nick when the nick is already used on server.
*
* First tries all declared nicks, then builds nicks by adding "_", until
* length of 9.
@@ -964,7 +964,7 @@ irc_server_get_nick_index (struct t_irc_server *server)
* ...
* abcde__99
*
* Returns NULL if no more alternate nick is available.
* Return NULL if no more alternate nick is available.
*/
const char *
@@ -1042,9 +1042,9 @@ irc_server_get_alternate_nick (struct t_irc_server *server)
}
/*
* Gets value of a feature item in "isupport" (copy of IRC message 005).
* Get value of a feature item in "isupport" (copy of IRC message 005).
*
* Returns value of feature (empty string if feature has no value, NULL if
* Return value of feature (empty string if feature has no value, NULL if
* feature is not found).
*/
@@ -1103,9 +1103,9 @@ irc_server_get_isupport_value (struct t_irc_server *server, const char *feature)
}
/*
* Gets "chantypes" for the server:
* - if server is NULL, returns pointer to irc_channel_default_chantypes
* - if server is not NULL, returns either chantypes in the server or
* Get "chantypes" for the server:
* - if server is NULL, return pointer to irc_channel_default_chantypes
* - if server is not NULL, return either chantypes in the server or
* server option "default_chantypes"
*/
@@ -1122,7 +1122,7 @@ irc_server_get_chantypes (struct t_irc_server *server)
}
/*
* Sets "prefix_modes" and "prefix_chars" in server using value of PREFIX in IRC
* Set "prefix_modes" and "prefix_chars" in server using value of PREFIX in IRC
* message 005.
*
* For example, if prefix is "(ohv)@%+":
@@ -1193,7 +1193,7 @@ irc_server_set_prefix_modes_chars (struct t_irc_server *server,
}
/*
* Sets "clienttagdeny", "clienttagdeny_count", "clienttagdeny_array" and
* Set "clienttagdeny", "clienttagdeny_count", "clienttagdeny_array" and
* "typing_allowed" in server using value of CLIENTTAGDENY in IRC message 005.
* The masks in array start with "!" for a tag that is allowed (not denied).
*
@@ -1259,7 +1259,7 @@ irc_server_set_clienttagdeny (struct t_irc_server *server,
}
/*
* Sets lag in server buffer (local variable), update bar item "lag"
* Set lag in server buffer (local variable), update bar item "lag"
* and send signal "irc_server_lag_changed" for the server.
*/
@@ -1304,7 +1304,7 @@ irc_server_set_lag (struct t_irc_server *server)
}
/*
* Sets tls_version in server buffer (local variable), update bar item
* Set tls_version in server buffer (local variable), update bar item
* "tls_version".
*/
@@ -1343,9 +1343,9 @@ irc_server_set_tls_version (struct t_irc_server *server)
}
/*
* Gets prefix_modes for server (for example: "ohv").
* Get prefix_modes for server (for example: "ohv").
*
* Returns default modes if prefix_modes is not set in server.
* Return default modes if prefix_modes is not set in server.
*/
const char *
@@ -1356,9 +1356,9 @@ irc_server_get_prefix_modes (struct t_irc_server *server)
}
/*
* Gets prefix_chars for server (for example: "@%+").
* Get prefix_chars for server (for example: "@%+").
*
* Returns default chars if prefix_chars is not set in server.
* Return default chars if prefix_chars is not set in server.
*/
const char *
@@ -1369,11 +1369,11 @@ irc_server_get_prefix_chars (struct t_irc_server *server)
}
/*
* Gets index of mode in prefix_modes.
* Get index of mode in prefix_modes.
*
* The mode is for example 'o' or 'v'.
*
* Returns -1 if mode does not exist in server.
* Return -1 if mode does not exist in server.
*/
int
@@ -1394,11 +1394,11 @@ irc_server_get_prefix_mode_index (struct t_irc_server *server, char mode)
}
/*
* Gets index of prefix_char in prefix_chars.
* Get index of prefix_char in prefix_chars.
*
* The prefix char is for example '@' or '+'.
*
* Returns -1 if prefix_char does not exist in server.
* Return -1 if prefix_char does not exist in server.
*/
int
@@ -1420,11 +1420,11 @@ irc_server_get_prefix_char_index (struct t_irc_server *server,
}
/*
* Gets mode for prefix char.
* Get mode for prefix char.
*
* For example prefix_char '@' can return 'o'.
*
* Returns ' ' (space) if prefix char is not found.
* Return ' ' (space) if prefix char is not found.
*/
char
@@ -1446,11 +1446,11 @@ irc_server_get_prefix_mode_for_char (struct t_irc_server *server,
}
/*
* Gets prefix char for mode.
* Get prefix char for mode.
*
* For example mode 'o' can return '@'.
*
* Returns a space if mode is not found.
* Return a space if mode is not found.
*/
char
@@ -1471,9 +1471,9 @@ irc_server_get_prefix_char_for_mode (struct t_irc_server *server, char mode)
}
/*
* Gets chanmodes for server (for example: "eIb,k,l,imnpstS").
* Get chanmodes for server (for example: "eIb,k,l,imnpstS").
*
* Returns default chanmodes if chanmodes is not set in server.
* Return default chanmodes if chanmodes is not set in server.
*/
const char *
@@ -1484,13 +1484,13 @@ irc_server_get_chanmodes (struct t_irc_server *server)
}
/*
* Checks if a prefix char is valid for a status message
* Check if a prefix char is valid for a status message
* (message sent for example to ops/voiced).
*
* The prefix (for example '@' or '+') must be in STATUSMSG,
* or in "prefix_chars" if STATUSMSG is not defined.
*
* Returns:
* Return:
* 1: prefix is valid for a status message
* 0: prefix is NOT valid for a status message
*/
@@ -1545,8 +1545,8 @@ irc_server_get_max_modes (struct t_irc_server *server)
}
/*
* Gets an evaluated default_msg server option: replaces "%v" by WeeChat
* version if there's no ${...} in string, or just evaluates the string.
* Get an evaluated default_msg server option: replace "%v" by WeeChat
* version if there's no ${...} in string, or just evaluate the string.
*
* Note: result must be freed after use.
*/
@@ -1598,7 +1598,7 @@ irc_server_get_default_msg (const char *default_msg,
}
/*
* Sets input prompt on server, channels and private buffers.
* Set input prompt on server, channels and private buffers.
*/
void
@@ -1645,7 +1645,7 @@ irc_server_set_buffer_input_prompt (struct t_irc_server *server)
}
/*
* Sets "input_multiline" to 1 or 0, according to capability draft/multiline
* Set "input_multiline" to 1 or 0, according to capability draft/multiline
* on all channels and private buffers.
*/
@@ -1671,7 +1671,7 @@ irc_server_set_buffer_input_multiline (struct t_irc_server *server,
}
/*
* Checks if a server has channels opened.
* Check if a server has channels opened.
*/
int
@@ -1693,9 +1693,9 @@ irc_server_has_channels (struct t_irc_server *server)
}
/*
* Allocates a new server and adds it to the servers queue.
* Allocate a new server and add it to the servers queue.
*
* Returns pointer to new server, NULL if error.
* Return pointer to new server, NULL if error.
*/
struct t_irc_server *
@@ -1905,7 +1905,7 @@ irc_server_alloc (const char *name)
}
/*
* Initializes a server with URL, using this format:
* Initialize a server with URL, using this format:
*
* irc[6][s]://[[nick][:pass]@]server[:port][/#chan1[,#chan2...]]
*
@@ -1920,7 +1920,7 @@ irc_server_alloc (const char *name)
* - "port": port (default is 6697 with TLS, 6667 otherwise)
* - "#chan1": channel to auto-join
*
* Returns pointer to new server, NULL if error.
* Return pointer to new server, NULL if error.
*/
struct t_irc_server *
@@ -2119,7 +2119,7 @@ irc_server_alloc_with_url (const char *irc_url)
}
/*
* Applies command line options to a server.
* Apply command line options to a server.
*
* For example: -tls -notls -password=test -proxy=myproxy
*/
@@ -2188,7 +2188,7 @@ irc_server_apply_command_line_options (struct t_irc_server *server,
}
/*
* Adds a message in out queue.
* Add a message in out queue.
*/
void
@@ -2220,7 +2220,7 @@ irc_server_outqueue_add (struct t_irc_server *server, int priority,
}
/*
* Frees a message in out queue.
* Free a message in out queue.
*/
void
@@ -2259,7 +2259,7 @@ irc_server_outqueue_free (struct t_irc_server *server,
}
/*
* Frees all messages in out queue.
* Free all messages in out queue.
*/
void
@@ -2273,7 +2273,7 @@ irc_server_outqueue_free_all (struct t_irc_server *server, int priority)
}
/*
* Frees SASL data in server.
* Free SASL data in server.
*/
void
@@ -2308,7 +2308,7 @@ irc_server_free_sasl_data (struct t_irc_server *server)
}
/*
* Frees server data.
* Free server data.
*/
void
@@ -2380,7 +2380,7 @@ irc_server_free_data (struct t_irc_server *server)
}
/*
* Frees a server and remove it from list of servers.
* Free a server and remove it from list of servers.
*/
void
@@ -2419,7 +2419,7 @@ irc_server_free (struct t_irc_server *server)
}
/*
* Frees all servers.
* Free all servers.
*/
void
@@ -2433,9 +2433,9 @@ irc_server_free_all (void)
}
/*
* Copies a server.
* Copy a server.
*
* Returns pointer to new server, NULL if error.
* Return pointer to new server, NULL if error.
*/
struct t_irc_server *
@@ -2492,9 +2492,9 @@ irc_server_copy (struct t_irc_server *server, const char *new_name)
}
/*
* Renames a server (internal name).
* Rename a server (internal name).
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -2586,9 +2586,9 @@ irc_server_rename (struct t_irc_server *server, const char *new_name)
}
/*
* Reorders list of servers.
* Reorder list of servers.
*
* Returns the number of servers moved in the list (>= 0).
* Return the number of servers moved in the list (>= 0).
*/
int
@@ -2645,7 +2645,7 @@ irc_server_reorder (const char **servers, int num_servers)
}
/*
* Sends a signal for an IRC message (received or sent).
* Send a signal for an IRC message (received or sent).
*/
int
@@ -2689,9 +2689,9 @@ irc_server_send_signal (struct t_irc_server *server, const char *signal,
}
/*
* Sends data to IRC server.
* Send data to IRC server.
*
* Returns number of bytes sent, -1 if error.
* Return number of bytes sent, -1 if error.
*/
int
@@ -2757,7 +2757,7 @@ irc_server_send (struct t_irc_server *server, const char *buffer, int size_buf)
}
/*
* Sets default tags used when sending message.
* Set default tags used when sending message.
*/
void
@@ -2767,7 +2767,7 @@ irc_server_set_send_default_tags (const char *tags)
}
/*
* Gets tags to send by concatenation of tags and irc_server_send_default_tags
* Get tags to send by concatenation of tags and irc_server_send_default_tags
* (if set).
*
* Note: result must be freed after use.
@@ -2793,9 +2793,9 @@ irc_server_get_tags_to_send (const char *tags)
}
/*
* Checks if all out queues are empty.
* Check if all out queues are empty.
*
* Returns:
* Return:
* 1: all out queues are empty
* 0: at least one out queue contains a message
*/
@@ -2834,7 +2834,7 @@ irc_server_outqueue_timer_cb (const void *pointer, void *data, int remaining_cal
}
/*
* Removes anti-flood timer form a server (if set).
* Remove anti-flood timer form a server (if set).
*/
void
@@ -2851,7 +2851,7 @@ irc_server_outqueue_timer_remove (struct t_irc_server *server)
}
/*
* Adds anti-flood timer in a server (removes it first if already set).
* Add anti-flood timer in a server (removes it first if already set).
*/
void
@@ -2871,7 +2871,7 @@ irc_server_outqueue_timer_add (struct t_irc_server *server)
}
/*
* Sends one message from out queue.
* Send one message from out queue.
*/
void
@@ -2938,7 +2938,7 @@ irc_server_outqueue_send_one_msg (struct t_irc_server *server,
}
/*
* Sends one or multiple message from out queues, by order of priority
* Send one or multiple message from out queues, by order of priority
* (immediate/high/low), then from oldest message to newest in queue.
*/
@@ -2983,7 +2983,7 @@ irc_server_outqueue_send (struct t_irc_server *server)
}
/*
* Sends one message to IRC server.
* Send one message to IRC server.
*
* If flag contains outqueue priority value, then messages are in a queue and
* sent slowly (to be sure there will not be any "excess flood"), value of
@@ -3177,7 +3177,7 @@ irc_server_arraylist_free_string_cb (void *data, struct t_arraylist *arraylist,
}
/*
* Sends a message to IRC server.
* Send a message to IRC server.
*
* If flags contains "IRC_SERVER_SEND_RETURN_LIST", then an arraylist with
* the list of messages to display is returned
@@ -3343,7 +3343,7 @@ irc_server_sendf (struct t_irc_server *server, int flags, const char *tags,
}
/*
* Adds a message to received messages queue (at the end).
* Add a message to received messages queue (at the end).
*/
void
@@ -3395,7 +3395,7 @@ irc_server_msgq_add_msg (struct t_irc_server *server, const char *msg)
}
/*
* Adds an unterminated message to queue.
* Add an unterminated message to queue.
*/
void
@@ -3438,7 +3438,7 @@ irc_server_msgq_add_unterminated (struct t_irc_server *server,
}
/*
* Splits received buffer, creating queued messages.
* Split received buffer, creating queued messages.
*/
void
@@ -3476,7 +3476,7 @@ irc_server_msgq_add_buffer (struct t_irc_server *server, const char *buffer)
}
/*
* Flushes message queue.
* Flush message queue.
*/
void
@@ -3737,9 +3737,9 @@ irc_server_msgq_flush (void)
}
/*
* Receives data from a server.
* Receive data from a server.
*
* Returns:
* Return:
* WEECHAT_RC_OK: OK
* WEECHAT_RC_ERROR: error
*/
@@ -4189,7 +4189,7 @@ irc_server_timer_cb (const void *pointer, void *data, int remaining_calls)
}
/*
* Closes server connection.
* Close server connection.
*/
void
@@ -4303,7 +4303,7 @@ irc_server_close_connection (struct t_irc_server *server)
}
/*
* Schedules reconnection to server.
* Schedule reconnection to server.
*/
void
@@ -4367,7 +4367,7 @@ irc_server_reconnect_schedule (struct t_irc_server *server)
}
/*
* Logins to server.
* Login to server.
*/
void
@@ -4443,8 +4443,7 @@ irc_server_login (struct t_irc_server *server)
}
/*
* Switches address and tries another (called if connection failed with an
* address/port).
* Switch address and try another (called if connection failed with an address/port).
*/
void
@@ -4478,7 +4477,7 @@ irc_server_switch_address (struct t_irc_server *server, int connection)
}
/*
* Reads connection status.
* Read connection status.
*/
int
@@ -4711,7 +4710,7 @@ irc_server_connect_cb (const void *pointer, void *data,
}
/*
* Sets the title for a server buffer.
* Set the title for a server buffer.
*/
void
@@ -4742,9 +4741,9 @@ irc_server_set_buffer_title (struct t_irc_server *server)
}
/*
* Creates a buffer for a server.
* Create a buffer for a server.
*
* Returns pointer to buffer, NULL if error.
* Return pointer to buffer, NULL if error.
*/
struct t_gui_buffer *
@@ -4840,7 +4839,7 @@ irc_server_create_buffer (struct t_irc_server *server)
}
/*
* Returns a string with sizes of allowed fingerprint,
* Return a string with sizes of allowed fingerprint,
* in number of hexadecimal digits (== bits / 4).
*
* Example of output: "128=SHA-512, 64=SHA-256, 40=SHA-1".
@@ -4870,10 +4869,10 @@ irc_server_fingerprint_str_sizes (void)
}
/*
* Compares two fingerprints: one hexadecimal (given by user), the second binary
* Compare two fingerprints: one hexadecimal (given by user), the second binary
* (received from IRC server).
*
* Returns:
* Return:
* 0: fingerprints are the same
* -1: fingerprints are different
*/
@@ -4902,9 +4901,9 @@ irc_server_compare_fingerprints (const char *fingerprint,
}
/*
* Checks if a GnuTLS session uses the certificate with a given fingerprint.
* Check if a GnuTLS session uses the certificate with a given fingerprint.
*
* Returns:
* Return:
* 1: certificate has the good fingerprint
* 0: certificate does NOT have the good fingerprint
*/
@@ -5002,7 +5001,7 @@ irc_server_check_certificate_fingerprint (struct t_irc_server *server,
/*
* GnuTLS callback called during handshake.
*
* Returns:
* Return:
* 0: certificate OK
* -1: error in certificate
*/
@@ -5372,9 +5371,9 @@ end:
}
/*
* Connects to a server.
* Connect to a server.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -5588,7 +5587,7 @@ irc_server_connect (struct t_irc_server *server)
}
/*
* Reconnects to a server (after disconnection).
* Reconnect to a server (after disconnection).
*/
void
@@ -5637,7 +5636,7 @@ irc_server_auto_connect_timer_cb (const void *pointer, void *data,
}
/*
* Auto-connects to servers (called at startup).
* Auto-connect to servers (called at startup).
*
* If auto_connect == 1, auto-connects to all servers with flag "autoconnect".
*/
@@ -5652,7 +5651,7 @@ irc_server_auto_connect (int auto_connect)
}
/*
* Disconnects from a server.
* Disconnect from a server.
*/
void
@@ -5814,7 +5813,7 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address,
}
/*
* Disconnects from all servers.
* Disconnect from all servers.
*/
void
@@ -5830,7 +5829,7 @@ irc_server_disconnect_all (void)
}
/*
* Executes command on server (using server option ".command").
* Execute command on server (using server option ".command").
*/
void
@@ -5878,7 +5877,7 @@ irc_server_execute_command (struct t_irc_server *server)
}
/*
* Creates buffers for auto-joined channels on a server.
* Create buffers for auto-joined channels on a server.
*/
void
@@ -5944,7 +5943,7 @@ irc_server_autojoin_create_buffers (struct t_irc_server *server)
*
* #channel1,#channel2,#channel3 key1,key2
*
* Returns NULL if no channels have been found.
* Return NULL if no channels have been found.
*
* Note: result must be freed after use.
*/
@@ -6035,7 +6034,7 @@ error:
}
/*
* Autojoins (or auto-rejoins) channels.
* Autojoin (or auto-rejoins) channels.
*/
void
@@ -6078,7 +6077,7 @@ irc_server_autojoin_channels (struct t_irc_server *server)
}
/*
* Returns number of channels for server.
* Return number of channels for server.
*/
int
@@ -6098,7 +6097,7 @@ irc_server_get_channel_count (struct t_irc_server *server)
}
/*
* Returns number of pv for server.
* Return number of pv for server.
*/
int
@@ -6118,7 +6117,7 @@ irc_server_get_pv_count (struct t_irc_server *server)
}
/*
* Removes away for all channels/nicks (for all servers).
* Remove away for all channels/nicks (for all servers).
*/
void
@@ -6139,7 +6138,7 @@ irc_server_remove_away (struct t_irc_server *server)
}
/*
* Checks for away on all channels of a server.
* Check for away on all channels of a server.
*/
void
@@ -6160,7 +6159,7 @@ irc_server_check_away (struct t_irc_server *server)
}
/*
* Sets/unsets away status for a server (all channels).
* Set/unset away status for a server (all channels).
*/
void
@@ -6455,7 +6454,7 @@ irc_server_xfer_send_accept_resume_cb (const void *pointer, void *data,
}
/*
* Returns hdata for server.
* Return hdata for server.
*/
struct t_hdata *
@@ -6583,13 +6582,13 @@ irc_server_hdata_server_cb (const void *pointer, void *data,
}
/*
* Adds a server in an infolist.
* Add a server in an infolist.
*
* If force_disconnected_state == 1, the infolist contains the server
* in a disconnected state (but the server is unchanged, still connected if it
* was).
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -6940,7 +6939,7 @@ irc_server_add_to_infolist (struct t_infolist *infolist,
}
/*
* Prints server infos in WeeChat log file (usually for crash dump).
* Print server infos in WeeChat log file (usually for crash dump).
*/
void
+7 -8
View File
@@ -32,7 +32,7 @@
/*
* Escapes a tag value, the following sequences are replaced:
* Escape a tag value, the following sequences are replaced:
*
* character | escaped value
* ---------------+-------------------------
@@ -104,7 +104,7 @@ irc_tag_escape_value (const char *string)
}
/*
* Unescapes a tag value.
* Unescape a tag value.
*
* See: https://ircv3.net/specs/extensions/message-tags#escaping-values
*
@@ -212,7 +212,7 @@ irc_tag_modifier_cb (const void *pointer, void *data,
}
/*
* Parses tags received in an IRC message and returns the number of tags
* Parse tags received in an IRC message and return the number of tags
* set in the hashtable "hashtable" (values are unescaped tag values).
*
* If prefix_key is not NULL, it is used as prefix before the name of keys.
@@ -286,8 +286,7 @@ irc_tag_parse (const char *tags,
}
/*
* Adds tags to a dynamic string, separated by semicolons, with escaped
* tag values.
* Add tags to a dynamic string, separated by semicolons, with escaped tag values.
*/
void
@@ -320,7 +319,7 @@ irc_tag_add_to_string_cb (void *data,
}
/*
* Converts hashtable with tags to a string (tags and values are escaped).
* Convert hashtable with tags to a string (tags and values are escaped).
*
* Note: result must be freed after use.
*/
@@ -343,7 +342,7 @@ irc_tag_hashtable_to_string (struct t_hashtable *tags)
}
/*
* Adds tags to another hashtable.
* Add tags to another hashtable.
*/
void
@@ -360,7 +359,7 @@ irc_tag_add_to_hashtable_cb (void *data,
}
/*
* Adds tags to an IRC message.
* Add tags to an IRC message.
* Existing tags in message are kept unchanged.
*
* Note: result must be freed after use.
+3 -3
View File
@@ -91,7 +91,7 @@ irc_typing_signal_typing_self_cb (const void *pointer, void *data,
}
/*
* Sends self typing status to channels/privates of a server.
* Send self typing status to channels/privates of a server.
*/
void
@@ -135,7 +135,7 @@ irc_typing_send_to_targets (struct t_irc_server *server)
}
/*
* Sets state of a nick on a channel.
* Set state of a nick on a channel.
*/
void
@@ -156,7 +156,7 @@ irc_typing_channel_set_nick (struct t_irc_channel *channel, const char *nick,
}
/*
* Resets all nicks state on a channel.
* Reset all nicks state on a channel.
*/
void
+8 -9
View File
@@ -48,9 +48,9 @@ int irc_upgrading = 0;
/*
* Saves servers/channels/nicks info to irc upgrade file.
* Save servers/channels/nicks info to irc upgrade file.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -264,9 +264,9 @@ irc_upgrade_save_all_data (struct t_upgrade_file *upgrade_file,
}
/*
* Saves irc upgrade file.
* Save irc upgrade file.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -290,8 +290,7 @@ irc_upgrade_save (int force_disconnected_state)
}
/*
* Restores buffers callbacks (input and close) for buffers created by irc
* plugin.
* Restore buffers callbacks (input and close) for buffers created by irc plugin.
*/
void
@@ -348,7 +347,7 @@ irc_upgrade_set_buffer_callbacks (void)
}
/*
* Reads callback for irc upgrade.
* Read callback for irc upgrade.
*/
int
@@ -1013,9 +1012,9 @@ irc_upgrade_set_buffer_properties (void)
}
/*
* Loads irc upgrade file.
* Load irc upgrade file.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
+2 -2
View File
@@ -197,7 +197,7 @@ irc_signal_upgrade_cb (const void *pointer, void *data,
}
/*
* Initializes IRC plugin.
* Initialize IRC plugin.
*/
int
@@ -322,7 +322,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
}
/*
* Ends IRC plugin.
* End IRC plugin.
*/
int