mirror of
https://github.com/anope/anope.git
synced 2026-06-28 14:36:38 +02:00
Sanitize nuh masks more to prevent the other side from rewriting them, which screws with our internal tracking of them
This commit is contained in:
@@ -387,6 +387,11 @@ unsigned IRCDProto::GetMaxListFor(Channel *c)
|
||||
return c->HasMode("LBAN") ? 0 : Config->GetBlock("networkinfo")->Get<int>("modelistsize");
|
||||
}
|
||||
|
||||
Anope::string IRCDProto::NormalizeMask(const Anope::string &mask)
|
||||
{
|
||||
return Entry("", mask).GetNUHMask();
|
||||
}
|
||||
|
||||
MessageSource::MessageSource(const Anope::string &src) : source(src), u(NULL), s(NULL)
|
||||
{
|
||||
/* no source for incoming message is our uplink */
|
||||
|
||||
Reference in New Issue
Block a user