From 725403fd7f78716db000b0847f81ac346d4e98b6 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 18 Feb 2012 16:35:31 +0100 Subject: [PATCH] Don't end the flood grace period with the first AWAY. This allows clients to restore an away message early in the connection process without breaking flood grace. --- modules/m_away.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/m_away.c b/modules/m_away.c index d7ca8fc7..2d8553ec 100644 --- a/modules/m_away.c +++ b/modules/m_away.c @@ -68,7 +68,8 @@ DECLARE_MODULE_AV1(away, NULL, NULL, away_clist, NULL, NULL, "$Revision: 3370 $" static int m_away(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { - if(MyClient(source_p) && !IsFloodDone(source_p)) + if(MyClient(source_p) && source_p->localClient->next_away && + !IsFloodDone(source_p)) flood_endgrace(source_p); if(!IsClient(source_p))