presence: Create presence metadata tracking structures where appropriate.
This commit is contained in:
parent
c7f7b72079
commit
dd7eb3ffaa
|
@ -96,6 +96,7 @@ struct User
|
||||||
int refcnt; /* Number of times this block is referenced */
|
int refcnt; /* Number of times this block is referenced */
|
||||||
|
|
||||||
char suser[NICKLEN+1];
|
char suser[NICKLEN+1];
|
||||||
|
struct Dictionary *metadata;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Server
|
struct Server
|
||||||
|
@ -177,8 +178,6 @@ struct Client
|
||||||
pre_client_t *preClient;
|
pre_client_t *preClient;
|
||||||
|
|
||||||
time_t large_ctcp_sent; /* ctcp to large group sent, relax flood checks */
|
time_t large_ctcp_sent; /* ctcp to large group sent, relax flood checks */
|
||||||
|
|
||||||
struct Dictionary *metadata;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LocalUser
|
struct LocalUser
|
||||||
|
|
|
@ -1657,8 +1657,10 @@ make_user(struct Client *client_p)
|
||||||
{
|
{
|
||||||
user = (struct User *) rb_bh_alloc(user_heap);
|
user = (struct User *) rb_bh_alloc(user_heap);
|
||||||
user->refcnt = 1;
|
user->refcnt = 1;
|
||||||
|
user->metadata = irc_dictionary_create(irccmp);
|
||||||
client_p->user = user;
|
client_p->user = user;
|
||||||
}
|
}
|
||||||
|
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue