From daad5582912d0aa96d83b7703dc924766ad0eb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 29 Sep 2019 11:50:39 +0200 Subject: [PATCH] core: fix typos in comments --- src/gui/gui-color.c | 2 +- src/plugins/irc/irc-color.c | 2 +- src/plugins/irc/irc-command.c | 2 +- src/plugins/irc/irc-redirect.c | 2 +- 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);