00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef INCLUDED_s_user_h
00026 #define INCLUDED_s_user_h
00027
00028 #define IRC_MAXSID 3
00029 #define IRC_MAXUID 6
00030 #define TOTALSIDUID (IRC_MAXSID + IRC_MAXUID)
00031
00032 struct Client;
00033 struct AccessItem;
00034
00035 extern int MaxClientCount;
00036 extern int MaxConnectionCount;
00037 extern struct Callback *entering_umode_cb;
00038 extern struct Callback *umode_cb;
00039 extern struct Callback *uid_get_cb;
00040 extern unsigned int user_modes[];
00041
00042 extern void assemble_umode_buffer(void);
00043 extern void set_user_mode(struct Client *, struct Client *, int, char **);
00044 extern void send_umode(struct Client *, struct Client *,
00045 unsigned int, unsigned int, char *);
00046 extern void send_umode_out(struct Client *, struct Client *, unsigned int);
00047 extern void show_lusers(struct Client *);
00048 extern void show_isupport(struct Client *);
00049 extern void oper_up(struct Client *);
00050
00051 extern void register_local_user(struct Client *, struct Client *,
00052 const char *, const char *);
00053 extern void register_remote_user(struct Client *, struct Client *,
00054 const char *, const char *,
00055 const char *, const char *);
00056 extern void do_local_user(const char *, struct Client *, struct Client *,
00057 const char *, const char *, const char *,
00058 const char *);
00059 extern void init_uid(void);
00060 extern int valid_sid(const char *);
00061 extern int valid_hostname(const char *);
00062 extern int valid_username(const char *);
00063 extern void add_isupport(const char *, const char *, int);
00064 extern void delete_isupport(const char *);
00065 extern void init_isupport(void);
00066 extern void rebuild_isupport_message_line(void);
00067
00068 #endif