From 43f42edfb760b4ebdaf76ff112a157a1f38e1c33 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Tue, 10 Aug 2021 12:36:48 +0200 Subject: [PATCH] Rename client->local->nextnick to client->local->next_nick_allowed --- include/struct.h | 2 +- src/ircd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/struct.h b/include/struct.h index 43e4c335d..aa526744a 100644 --- a/include/struct.h +++ b/include/struct.h @@ -1355,7 +1355,7 @@ struct LocalClient { u_char targets[MAXCCUSERS]; /**< Hash values of targets for target limiting */ ConfigItem_listen *listener; /**< If this client IsListening() then this is the listener configuration attached to it */ long serial; /**< Current serial number for send.c functions (to avoid sending duplicate messages) */ - time_t nextnick; /**< Time the next nick change will be allowed */ + time_t next_nick_allowed; /**< Time the next nick change will be allowed */ time_t idle_since; /**< Last time a RESETIDLE message was received (PRIVMSG) */ long sendM; /**< Statistics: protocol messages send */ long sendK; /**< Statistics: total k-bytes send */ diff --git a/src/ircd.c b/src/ircd.c index fa9796c59..b6ad89a98 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -527,8 +527,8 @@ void fix_timers(void) /* users */ if (MyUser(client)) { - if (client->local->nextnick > TStime()) - client->local->nextnick = TStime(); + if (client->local->next_nick_allowed > TStime()) + client->local->next_nick_allowed = TStime(); if (client->local->nexttarget > TStime()) client->local->nexttarget = TStime(); }