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

Dont send BURST twice on inspircd

Drop matching nicks on forbid.
This commit is contained in:
Adam
2013-09-14 04:18:56 -04:00
parent 1107b92699
commit dcb3ff7d34
2 changed files with 22 additions and 5 deletions
+2 -5
View File
@@ -294,8 +294,6 @@ class InspIRCd12Proto : public IRCDProto
SendAddLine("Q", x->mask, timeleft, x->by, x->GetReason());
}
/* Functions that use serval cmd functions */
void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost) anope_override
{
if (!vIdent.empty())
@@ -307,9 +305,6 @@ class InspIRCd12Proto : public IRCDProto
void SendConnect() anope_override
{
SendServer(Me);
UplinkSocket::Message(Me) << "BURST";
Module *enc = ModuleManager::FindFirstOf(ENCRYPTION);
UplinkSocket::Message(Me) << "VERSION :Anope-" << Anope::Version() << " " << Me->GetName() << " :" << IRCD->GetProtocolName() << " - (" << (enc ? enc->name : "none") << ") -- " << Anope::VersionBuildString();
}
/* SVSHOLD - set */
@@ -363,6 +358,8 @@ class InspIRCd12Proto : public IRCDProto
void SendBOB() anope_override
{
UplinkSocket::Message(Me) << "BURST " << Anope::CurTime;
Module *enc = ModuleManager::FindFirstOf(ENCRYPTION);
UplinkSocket::Message(Me) << "VERSION :Anope-" << Anope::Version() << " " << Me->GetName() << " :" << IRCD->GetProtocolName() << " - (" << (enc ? enc->name : "none") << ") -- " << Anope::VersionBuildString();
}
void SendEOB() anope_override