From 7c9c615aed42d69e95f6fdf7fba4431f53f82205 Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 25 Feb 2026 02:12:10 -0700 Subject: [PATCH] Removed redundant inline comments from the fishlim IRC parsing helpers where the comments only repeated obvious code behavior, while preserving all function docblocks and logic. --- plugins/fishlim/irc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/fishlim/irc.c b/plugins/fishlim/irc.c index 19b810eb..e2f39118 100644 --- a/plugins/fishlim/irc.c +++ b/plugins/fishlim/irc.c @@ -39,13 +39,11 @@ gboolean irc_parse_message(const char *words[], if (prefix) *prefix = NULL; if (command) *command = NULL; - /* See if the message starts with a prefix (sender user) */ if (words[w][0] == ':') { if (prefix) *prefix = &words[w][1]; w++; } - - /* Check command */ + if (words[w][0] == '\0') return FALSE; if (command) *command = words[w]; w++; @@ -72,11 +70,9 @@ char *irc_prefix_get_nick(const char *prefix) { if (!prefix) return NULL; - /* Find end of nick */ end = prefix; while (*end != '\0' && *end != '!' && *end != '@') end++; - - /* Allocate string */ + length = end - prefix; return g_strndup (prefix, length); }