X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/1332a0ef97f5b6b224873ab77ec2cebb524db494..d4eab91a9941a9c9eb20f5253115686de8e26af4:/include/client.h diff --git a/include/client.h b/include/client.h index 38a0ca9..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]; }; @@ -613,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 */