diff options
| author | Adam <Adam@anope.org> | 2013-03-13 14:40:49 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-03-13 14:40:49 -0500 |
| commit | 1ff7a7c1f1cee2dfe26a0a72026176202e2e4e6a (patch) | |
| tree | a492ee7bc3dc23a9ffae40ca1e643d664608e929 /include/sockets.h | |
| parent | 1d16629a6da2f1d5b65557028e75abc7de51cad5 (diff) | |
Refactor mask/entry code, allow full matching (against users real host/ip) if their displayed host is their real real host. Also match against cloaked host even if full matching is not being done
Diffstat (limited to 'include/sockets.h')
| -rw-r--r-- | include/sockets.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sockets.h b/include/sockets.h index 8fc675614..0e490ac24 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -85,12 +85,12 @@ class CoreExport cidr { sockaddrs addr; Anope::string cidr_ip; - unsigned char cidr_len; + unsigned short cidr_len; public: cidr(const Anope::string &ip); cidr(const Anope::string &ip, unsigned char len); Anope::string mask() const; - bool match(sockaddrs &other); + bool match(const sockaddrs &other); bool operator<(const cidr &other) const; bool operator==(const cidr &other) const; |
