presence: Create presence metadata tracking structures where appropriate.

This commit is contained in:
William Pitcock 2009-05-30 13:30:57 -05:00
parent d7ca5991bc
commit 0d3b24f9cf
2 changed files with 3 additions and 2 deletions

View file

@ -96,6 +96,7 @@ struct User
int refcnt; /* Number of times this block is referenced */
char suser[NICKLEN+1];
struct Dictionary *metadata;
};
struct Server
@ -177,8 +178,6 @@ struct Client
pre_client_t *preClient;
time_t large_ctcp_sent; /* ctcp to large group sent, relax flood checks */
struct Dictionary *metadata;
};
struct LocalUser

View file

@ -1657,8 +1657,10 @@ make_user(struct Client *client_p)
{
user = (struct User *) rb_bh_alloc(user_heap);
user->refcnt = 1;
user->metadata = irc_dictionary_create(irccmp);
client_p->user = user;
}
return user;
}