Implemented initial support for zombie mode by Jan Krüger <jk@jk.gs>
[ircu2.10.12-pk.git] / include / s_user.h
index bc365b59b4993d1fa5baa1c4376a4f24bd302595..78035035da577ef33e271961781d71592f054d9c 100644 (file)
@@ -75,11 +75,18 @@ extern int set_nick_name(struct Client* cptr, struct Client* sptr,
                          const char* nick, int parc, char* parv[], unsigned int force);
 extern void send_umode_out(struct Client* cptr, struct Client* sptr,
                           struct Flags* old, int prop);
+extern void send_umode(struct Client *cptr, struct Client *sptr, struct Flags *old,
+                       int sendset);
 extern int whisper(struct Client* source, const char* nick,
                    const char* channel, const char* text, int is_notice);
 extern void send_user_info(struct Client* to, char* names, int rpl,
                            InfoFormatter fmt);
 
+#define HIDE_HOSTMASK_FLAG_HIDDENHOST 0x01
+#define HIDE_HOSTMASK_FLAG_ACCOUNT    0x02
+#define HIDE_HOSTMASK_FLAG_FAKEHOST   0x04
+#define HIDE_HOSTMASK_FLAG_FAKEIDENT  0x08
+
 extern int hide_hostmask(struct Client *cptr, unsigned int flags);
 extern int apply_fakehost(struct Client *cptr);
 extern int set_user_mode(struct Client *cptr, struct Client *sptr,
@@ -110,6 +117,7 @@ extern int send_supported(struct Client *cptr);
 #define NAMES_VIS 2 /**< List only visible users in non-secret channels */
 #define NAMES_EON 4 /**< Add an 'End Of Names' reply to the end */
 #define NAMES_DEL 8 /**< Show delayed joined users only */
+#define NAMES_OPS 16 /**< Show oped users only */
 
 void do_names(struct Client* sptr, struct Channel* chptr, int filter);