From 3759fe0ba2420bd564abb4b034582ea0866907aa Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 May 2007 14:30:08 +0000 Subject: Where others charge, we give for free. Have fun and use wisely. With great power comes great responsbility. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6867 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 2 +- include/users.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 7655517ea..51eb5a19b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -75,7 +75,7 @@ enum MessageType { * ipv4 servers, so this value will be ten times as * high on ipv6 servers. */ -#define NATIVE_API_VERSION 11020 +#define NATIVE_API_VERSION 11021 #ifdef IPV6 #define API_VERSION (NATIVE_API_VERSION * 10) #else diff --git a/include/users.h b/include/users.h index 0b5bc467f..84bde46b9 100644 --- a/include/users.h +++ b/include/users.h @@ -247,6 +247,16 @@ typedef std::vector ClassVector; typedef std::map UserChanList; typedef UserChanList::iterator UCListIter; +class userrec; + +class VisData +{ + public: + VisData(); + virtual ~VisData(); + virtual bool VisibleTo(userrec* user); +}; + /** Holds all information about a user * This class stores all information about a user connected to the irc server. Everything about a * connection is stored here primarily, from the user's socket ID (file descriptor) through to the @@ -308,6 +318,8 @@ class userrec : public connection */ UserResolver* res_reverse; + VisData* Visibility; + /** Stored reverse lookup from res_forward */ std::string stored_host; -- cgit v1.3.1-10-gc9f91