Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / s_user.h
index e3e70c7846d87d0e0e1839b4ed249674e0904077..fec38e238f7e0fd10718d881659c9329fc0d55d0 100644 (file)
@@ -14,6 +14,7 @@ struct Client;
 struct User;
 struct Gline;
 struct Channel;
+struct MsgBuf;
 
 /*
  * Macros
@@ -49,7 +50,7 @@ struct Channel;
 
 extern struct SLink *opsarray[];
 
-typedef char* (*InfoFormatter)(struct Client* who, char* buf);
+typedef void (*InfoFormatter)(struct Client* who, struct MsgBuf* buf);
 
 /*
  * Prototypes
@@ -62,11 +63,11 @@ extern int          register_user(struct Client* cptr, struct Client* sptr,
 
 extern void         user_count_memory(size_t* count_out, size_t* bytes_out);
 
-extern int user_set_away(struct User* user, char* message);
 extern int do_nick_name(char* nick);
 extern int set_nick_name(struct Client* cptr, struct Client* sptr,
                          const char* nick, int parc, char* parv[]);
-extern void send_umode_out(struct Client* cptr, struct Client* sptr, int old);
+extern void send_umode_out(struct Client* cptr, struct Client* sptr, int old,
+                          int prop);
 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,
@@ -96,6 +97,7 @@ extern unsigned int umode_make_snomask(unsigned int oldmask, char *arg,
 
 #define NAMES_ALL 1 /* List all users in channel */
 #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 */
 
 void do_names(struct Client* sptr, struct Channel* chptr, int filter);