summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 14:30:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 14:30:08 +0000
commit3759fe0ba2420bd564abb4b034582ea0866907aa (patch)
tree23b261f13410ad3fefcd74c3ee06bf21a7bc95fe /include
parentc78863d6037864781670723e66be8f3fb5c68450 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/modules.h2
-rw-r--r--include/users.h12
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;