]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/client.h
'lip' added in LocalUser struct
[irc/rqf/shadowircd.git] / include / client.h
index c3312df83e07978bda66aea8d2be3c7e2e3fa9fc..70366aba7a9e69844204009e606e1b7de6d278bb 100644 (file)
 #endif
 
 #include "ircd_defs.h"
-#include "linebuf.h"
 #include "channel.h"
 #include "res.h"
 #include "snomask.h"
 #include "irc_string.h"
 #include "sprintf_irc.h"
 #include "ircd.h"
-#include "commio.h"
 
 /* other structs */
 struct Blacklist;
@@ -235,7 +233,7 @@ struct LocalUser
        conf_item_t *att_conf;          /* attached conf */
        struct server_conf *att_sconf;
 
-       struct irc_sockaddr_storage ip;
+       struct rb_sockaddr_storage ip;
        time_t last_nick_change;
        int number_of_nick_changes;
 
@@ -298,6 +296,8 @@ struct LocalUser
 
        char *mangledhost; /* non-NULL if host mangling module loaded and
                              applicable to this client */
+
+       struct rb_sockaddr_storage *lip;        /* alloc before auth/freed after auth */
 };
 
 struct PreClient
@@ -596,7 +596,7 @@ extern client_t *find_person(const char *);
 extern client_t *find_named_person(const char *);
 extern client_t *next_client(struct Client *, const char *);
 
-#define accept_message(s, t) ((s) == (t) || (dlinkFind((s), &((t)->localClient->allow_list))))
+#define accept_message(s, t) ((s) == (t) || (rb_dlinkFind((s), &((t)->localClient->allow_list))))
 extern void del_all_accepts(struct Client *client_p);
 
 extern void dead_link(struct Client *client_p);
@@ -611,4 +611,7 @@ extern void close_connection(struct Client *);
 extern void init_uid(void);
 extern char *generate_uid(void);
 
+void allocate_away(struct Client *);\r
+void free_away(struct Client *);
+
 #endif /* INCLUDED_client_h */