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:
@@ -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" : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user