diff options
author | Adam <Adam@anope.org> | 2014-05-13 22:57:53 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-05-13 22:57:53 -0400 |
commit | 63b02b8c97e73d5a1fc7005e9693a954179ded0d (patch) | |
tree | 84d67d16b8f984eef67653c7a50f7154aa33bb23 /src/protocol.cpp | |
parent | 1c8a77ab9f4adfd0afd8217bc462bb338925dcea (diff) |
Sanitize nuh masks more to prevent the other side from rewriting them, which screws with our internal tracking of them
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 89e4a3c86..a32f521f2 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -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 */ |