diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-29 19:36:51 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-29 19:36:51 +0000 |
commit | cead4299606b2512732879e6d377cdef777dc659 (patch) | |
tree | 6e82c5e77655f49be6c9515c63d6ab0a31af5dbd /include | |
parent | 6c9292470dfdd5508a7bc0d28c3702e6188f4575 (diff) |
- Finished proper implementation of usermode 'x' (UMODE_HIDDENHOST)
Only services may set a fakehost via SVSMODE.
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2136 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r-- | include/client.h | 2 | ||||
-rw-r--r-- | include/numeric.h | 1 | ||||
-rw-r--r-- | include/s_user.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/client.h b/include/client.h index d6734e4..c85de6e 100644 --- a/include/client.h +++ b/include/client.h @@ -159,6 +159,7 @@ #define UMODE_OPER 0x00400000 /**< Operator */ #define UMODE_ADMIN 0x00800000 /**< Admin on server */ #define UMODE_FARCONNECT 0x01000000 /**< Can see remote client connects/exits */ +#define UMODE_HIDDENHOST 0x02000000 /**< User's host is hidden */ #define UMODE_ALL UMODE_SERVNOTICE @@ -257,6 +258,7 @@ #define SetExemptResv(x) ((x)->flags |= FLAGS_EXEMPTRESV) #define SetIPSpoof(x) ((x)->flags |= FLAGS_IP_SPOOFING) #define IsIPSpoof(x) ((x)->flags & FLAGS_IP_SPOOFING) +#define DelIPSpoof(x) ((x)->flags &= ~FLAGS_IP_SPOOFING) #define IsFloodDone(x) ((x)->flags & FLAGS_FLOODDONE) #define SetFloodDone(x) ((x)->flags |= FLAGS_FLOODDONE) diff --git a/include/numeric.h b/include/numeric.h index 87296dd..0f9bca6 100644 --- a/include/numeric.h +++ b/include/numeric.h @@ -108,6 +108,7 @@ extern const char *form_str(unsigned int); #define RPL_GLOBALUSERS 266 #define RPL_ACCEPTLIST 281 #define RPL_ENDOFACCEPT 282 +#define RPL_NEWHOSTIS 285 /* numeric_replies */ #define RPL_AWAY 301 diff --git a/include/s_user.h b/include/s_user.h index b6f7a2f..77e5949 100644 --- a/include/s_user.h +++ b/include/s_user.h @@ -55,6 +55,6 @@ extern void add_isupport(const char *, const char *, int); extern void delete_isupport(const char *); extern void init_isupport(void); extern void rebuild_isupport_message_line(void); -extern void user_set_hostmask(struct Client *, const char *); +extern void user_set_hostmask(struct Client *, const char *, const int); #endif |