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.
This commit is contained in:
Jilles Tjoelker 2012-02-18 16:35:31 +01:00
parent d42e6915cf
commit 725403fd7f

View file

@ -68,7 +68,8 @@ DECLARE_MODULE_AV1(away, NULL, NULL, away_clist, NULL, NULL, "$Revision: 3370 $"
static int static int
m_away(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) 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); flood_endgrace(source_p);
if(!IsClient(source_p)) if(!IsClient(source_p))