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

protocol/inspircd: Match servername as well on ENCAP

This commit is contained in:
genius3000
2016-11-22 02:26:41 -07:00
parent 23a0628fba
commit aefde6e44d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -873,7 +873,7 @@ struct IRCDMessageEncap : IRCDMessage
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
if (Anope::Match(Me->GetSID(), params[0]) == false)
if (!Anope::Match(Me->GetSID(), params[0]) && !Anope::Match(Me->GetName(), params[0]))
return;
if (SASL::sasl && params[1] == "SASL" && params.size() >= 6)
+1 -1
View File
@@ -776,7 +776,7 @@ struct IRCDMessageEncap : IRCDMessage
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
if (Anope::Match(Me->GetSID(), params[0]) == false)
if (!Anope::Match(Me->GetSID(), params[0]) && !Anope::Match(Me->GetName(), params[0]))
return;
if (params[1] == "CHGIDENT")