mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
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:
parent
d42e6915cf
commit
725403fd7f
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue