1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 05:16:37 +02:00

InspIRCd 2.0: Re-set server-side topiclock when an incoming METADATA topiclock from a bursting server changes it

This commit is contained in:
Attila Molnar
2014-11-05 00:13:29 +01:00
parent e47aacad0e
commit 89257d9bce
+7
View File
@@ -875,6 +875,13 @@ class IRCDMessageMetadata : IRCDMessage
if (modes != params[2])
UplinkSocket::Message(Me) << "METADATA " << c->name << " mlock :" << modes;
}
else if ((do_topiclock) && (params[1] == "topiclock"))
{
bool mystate = c->ci->GetExt<bool>("TOPICLOCK");
bool serverstate = (params[2] == "1");
if (mystate != serverstate)
UplinkSocket::Message(Me) << "METADATA " << c->name << " topiclock :" << (mystate ? "1" : "");
}
}
}