From 5cab7be8a9421b1819e10c4af36e1d689a7ced3e Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 25 Feb 2026 00:34:59 -0700 Subject: [PATCH] Removed redundant inline comments in notify network filtering and server-entry lookup paths to clean up noise without changing behavior. Simplified notify list preparation in notify_save into a single reverse-copy expression and normalized GLib call spacing for consistency. --- src/common/notify.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/common/notify.c b/src/common/notify.c index 4fd0b159..5569c100 100644 --- a/src/common/notify.c +++ b/src/common/notify.c @@ -87,7 +87,7 @@ notify_do_network (struct notify *notify, server *serv) return TRUE; if (token_foreach (notify->networks, ',', notify_netcmp, serv)) - return FALSE; /* network list doesn't contain this one */ + return FALSE; return TRUE; } @@ -106,8 +106,6 @@ notify_find_server_entry (struct notify *notify, struct server *serv) list = list->next; } - /* not found, should we add it, or is this not a network where - we're monitoring this nick? */ if (!notify_do_network (notify, serv)) return NULL; @@ -123,11 +121,7 @@ notify_save (void) { int fh; struct notify *notify; - // while reading the notify.conf file, elements are added by prepending to the - // list. reverse the list before writing to disk to keep the original - // order of the list - GSList *list = g_slist_copy(notify_list); - list = g_slist_reverse(list); + GSList *list = g_slist_reverse (g_slist_copy (notify_list)); fh = zoitechat_open_file ("notify.conf", O_TRUNC | O_WRONLY | O_CREAT, 0600, XOF_DOMODE); if (fh != -1) @@ -146,7 +140,7 @@ notify_save (void) } close (fh); } - g_slist_free(list); + g_slist_free (list); } void