mirror of
https://github.com/anope/anope.git
synced 2026-06-30 05:36:38 +02:00
Add support for Unreals extban ~a:
This commit is contained in:
@@ -391,6 +391,13 @@ class UnrealExtBan : public ChannelModeList
|
||||
if (u->HasMode(UMODE_REGISTERED) && mask.equals_ci(u->nick))
|
||||
return true;
|
||||
}
|
||||
else if (mask.find("~a:") == 0)
|
||||
{
|
||||
Anope::string real_mask = mask.substr(3);
|
||||
|
||||
if (u->Account() && Anope::Match(u->Account()->display, real_mask))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user