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:
@@ -873,7 +873,7 @@ struct IRCDMessageEncap : IRCDMessage
|
||||
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) 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)
|
||||
|
||||
@@ -774,7 +774,7 @@ struct IRCDMessageEncap : IRCDMessage
|
||||
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) 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")
|
||||
|
||||
Reference in New Issue
Block a user