1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 03:06:37 +02:00

Check modetimes in CheckModes before enabling bouncy modes

This commit is contained in:
Adam
2014-07-15 17:02:14 -04:00
parent 93cb5d06db
commit 3c88f3b8cf
+1 -1
View File
@@ -108,7 +108,7 @@ void Channel::CheckModes()
return;
/* Check for mode bouncing */
if (this->server_modecount >= 3 && this->chanserv_modecount >= 3)
if (this->chanserv_modetime == Anope::CurTime && this->server_modetime == Anope::CurTime && this->server_modecount >= 3 && this->chanserv_modecount >= 3)
{
Log() << "Warning: unable to set modes on channel " << this->name << ". Are your servers' U:lines configured correctly?";
this->bouncy_modes = 1;