diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 2 | ||||
-rw-r--r-- | include/users.h | 12 |
2 files changed, 13 insertions, 1 deletions
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<ConnectClass> ClassVector; typedef std::map<chanrec*, char> 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; |