X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/61ffa214b4ea6a13b4e9bab4f4ce5fa2ecb338a9..d4eab91a9941a9c9eb20f5253115686de8e26af4:/include/client.h diff --git a/include/client.h b/include/client.h index c74af9d..b70e0d0 100644 --- a/include/client.h +++ b/include/client.h @@ -84,6 +84,8 @@ struct User char *away; /* pointer to away message */ int refcnt; /* Number of times this block is referenced */ + struct Dictionary *metadata; + char suser[NICKLEN+1]; }; @@ -281,6 +283,8 @@ struct LocalUser struct ev_entry *event; /* used for associated events */ struct PrivilegeSet *privset; /* privset... */ + + struct rb_event_t *override_timeout_event; }; struct PreClient @@ -611,4 +615,9 @@ extern char *generate_uid(void); void allocate_away(struct Client *); void free_away(struct Client *); +extern struct Metadata *user_metadata_add(struct Client *target, const char *name, const char *value, int propegate); +extern void user_metadata_delete(struct Client *target, const char *name, int propegate); +extern struct Metadata *user_metadata_find(struct Client *target, const char *name); +extern void user_metadata_clear(struct Client *target); + #endif /* INCLUDED_client_h */