1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 15:26:41 +02:00

Merge pull request #182 from genius3000/2.0+protocol_match_name

protocol/inspircd: Match servername as well on ENCAP
This commit is contained in:
Adam
2017-01-16 18:33:09 -05:00
committed by GitHub
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
@@ -774,7 +774,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")