From b43fc66c17c2bef6dca66a966676b8128d5774ee Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 22 Oct 2009 21:49:39 +0000 Subject: Make irc::sockets::* parameters consistent, add irc::sockets::mask git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11953 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index 49e43f0bf..fa56abc0e 100644 --- a/include/users.h +++ b/include/users.h @@ -388,20 +388,15 @@ class CoreExport User : public StreamSocket */ const char* GetIPString(); + /** Get CIDR mask, using default range, for this user + */ + irc::string GetCIDRMask(); + /** Sets the client IP for this user * @return true if the conversion was successful */ bool SetClientIP(const char* sip); - /** Get a CIDR mask from the IP of this user, using a static internal buffer. - * e.g., GetCIDRMask(16) for 223.254.214.52 returns 223.254.0.0/16 - * This may be used for CIDR clone detection, etc. - * - * (XXX, brief note: when we do the sockets rewrite, this should move down a - * level so it may be used on more derived objects. -- w00t) - */ - const char *GetCIDRMask(int range); - /** Default constructor * @throw CoreException if the UID allocated to the user already exists * @param Instance Creator instance -- cgit v1.2.3