]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/client.h
Added tag shadowircd-6.3.0-RC1 for changeset 5d25c87c7895
[irc/rqf/shadowircd.git] / include / client.h
index 38a0ca9c03db91fdf3857597acf43cc25b2675f2..41ee5af2331dbad1f514ee6116f1edd8ec3e959a 100644 (file)
@@ -22,7 +22,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: client.h 3446 2007-05-14 22:21:16Z jilles $
  */
 
 #ifndef INCLUDED_client_h
@@ -84,6 +83,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];
 };
 
@@ -282,7 +283,7 @@ struct LocalUser
 
        struct PrivilegeSet *privset;           /* privset... */
 
-       struct rb_event_t *override_timeout_event;
+       struct ev_entry *override_timeout_event;
 };
 
 struct PreClient
@@ -305,10 +306,8 @@ struct ListClient
 {
        unsigned int hash_indice;
        unsigned int users_min, users_max;
-
-       /* It would be nice to add other modifiers,
-        * but not for 1.1 --nenolod
-        */
+       time_t created_min, created_max, topic_min, topic_max;
+       int operspy;
 };
 
 /*
@@ -613,4 +612,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 */