0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 11:12:51 +01:00

MODE: allow 'q' banlist queries to bypass flood limits too

This commit is contained in:
William Pitcock 2015-12-28 00:48:46 -06:00
parent 0950390c77
commit c7b2fd3d66

View file

@ -140,7 +140,7 @@ m_mode(struct Client *client_p, struct Client *source_p, int parc, const char *p
/* Finish the flood grace period... */ /* Finish the flood grace period... */
if(MyClient(source_p) && !IsFloodDone(source_p)) if(MyClient(source_p) && !IsFloodDone(source_p))
{ {
if(!((parc == 3) && (parv[2][0] == 'b') && (parv[2][1] == '\0'))) if(!((parc == 3) && (parv[2][0] == 'b' || parv[2][0] == 'q') && (parv[2][1] == '\0')))
flood_endgrace(source_p); flood_endgrace(source_p);
} }