1
0
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:
Adam
2014-05-13 22:57:53 -04:00
parent 1c8a77ab9f
commit 63b02b8c97
9 changed files with 48 additions and 19 deletions
+5
View File
@@ -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 */