diff options
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sockets.h b/include/sockets.h index 0dfa5d9d0..ca61f7efc 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -59,7 +59,7 @@ union CoreExport sockaddrs /** Check if this sockaddr has data in it */ - bool operator()() const; + bool valid() const; /** Compares with sockaddr with another. Compares address type, port, and address * @return true if they are the same @@ -82,8 +82,6 @@ union CoreExport sockaddrs * @throws A socket exception if given an invalid structure */ void ntop(int type, const void *src); - - bool valid() const; }; class CoreExport cidr @@ -94,6 +92,7 @@ class CoreExport cidr public: cidr(const Anope::string &ip); cidr(const Anope::string &ip, unsigned char len); + cidr(const sockaddrs &ip, unsigned char len); Anope::string mask() const; bool match(const sockaddrs &other); bool valid() const; |