summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-09-29 11:50:39 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-10-01 18:31:41 +0200
commitdaad5582912d0aa96d83b7703dc924766ad0eb08 (patch)
tree9966d4a79c705280c3cc89673e004252058d2e0a /src
parentbaf8f635fff9e3b5417d3d88efb35df3f1c59a8d (diff)
downloadweechat-daad5582912d0aa96d83b7703dc924766ad0eb08.zip
core: fix typos in comments
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-color.c2
-rw-r--r--src/plugins/irc/irc-color.c2
-rw-r--r--src/plugins/irc/irc-command.c2
-rw-r--r--src/plugins/irc/irc-redirect.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c
index 3aff0f14d..6115ff472 100644
--- a/src/gui/gui-color.c
+++ b/src/gui/gui-color.c
@@ -776,7 +776,7 @@ gui_color_decode_ansi_cb (void *data, const char *text)
keep_colors = (data) ? 1 : 0;;
- /* if we don't keep colors of if text is empty, just return empty string */
+ /* if we don't keep colors or if text is empty, just return empty string */
if (!keep_colors || !text || !text[0])
return strdup ("");
diff --git a/src/plugins/irc/irc-color.c b/src/plugins/irc/irc-color.c
index 6def56b72..af95d8614 100644
--- a/src/plugins/irc/irc-color.c
+++ b/src/plugins/irc/irc-color.c
@@ -489,7 +489,7 @@ irc_color_decode_ansi_cb (void *data, const char *text)
ansi_state = (struct t_irc_color_ansi_state *)data;
- /* if we don't keep colors of if text is empty, just return empty string */
+ /* if we don't keep colors or if text is empty, just return empty string */
if (!ansi_state->keep_colors || !text || !text[0])
return strdup ("");
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 6a37b3213..ba8fca6d3 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -311,7 +311,7 @@ irc_command_mode_masks (struct t_irc_server *server,
sizeof (masks));
/*
- * if we reached the max number of modes allowed of if the mask doesn't
+ * if we reached the max number of modes allowed or if the mask doesn't
* fits in string, send the MODE command now and flush the modes/masks
* strings
*/
diff --git a/src/plugins/irc/irc-redirect.c b/src/plugins/irc/irc-redirect.c
index a1081ea3f..7832dcb2e 100644
--- a/src/plugins/irc/irc-redirect.c
+++ b/src/plugins/irc/irc-redirect.c
@@ -882,7 +882,7 @@ irc_redirect_message (struct t_irc_server *server, const char *message,
if (match_stop || ptr_redirect->cmd_start_received)
{
/*
- * add message to output if matching stop of if command
+ * add message to output if matching stop or if command
* is numeric
*/
irc_redirect_message_add (ptr_redirect, message, command);