X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fstruct.h;h=cd2712c931c8b8897b0b247c70c897ca90a7ccf3;hb=refs%2Fheads%2Fupstream-ssl;hp=b78edd370ffd4114d3f0aeb777155583d81e20b5;hpb=b96a241254a053e44b1d1a4a7c0d7430eda04e74;p=ircu2.10.12-pk.git diff --git a/include/struct.h b/include/struct.h index b78edd3..cd2712c 100644 --- a/include/struct.h +++ b/include/struct.h @@ -57,6 +57,7 @@ struct Server { int asll_rtt; /**< AsLL round-trip time */ int asll_to; /**< AsLL upstream lag */ int asll_from; /**< AsLL downstream lag */ + time_t asll_last; /**< Last time we sent or received an AsLL ping */ char *last_error_msg; /**< Allocated memory with last message receive with an ERROR */ char by[NICKLEN + 1]; /**< Numnick of client who requested the link */ @@ -67,13 +68,18 @@ struct User { struct Client* server; /**< client structure of server */ struct Membership* channel; /**< chain of channel pointer blocks */ struct SLink* invited; /**< chain of invite pointer blocks */ - struct SLink* silence; /**< chain of silence pointer blocks */ + struct Ban* silence; /**< chain of silence pointer blocks */ char* away; /**< pointer to away message */ time_t last; /**< last time user sent a message */ unsigned int refcnt; /**< Number of times this block is referenced */ unsigned int joined; /**< number of channels joined */ unsigned int invites; /**< Number of channels we've been invited to */ - char username[USERLEN + 1]; /**< remote account name */ + /** Remote account name. Before registration is complete, this is + * either empty or contains the username from the USER command. + * After registration, that may be prefixed with ~ or it may be + * overwritten with the ident response. + */ + char username[USERLEN + 1]; char host[HOSTLEN + 1]; /**< displayed hostname */ char realhost[HOSTLEN + 1]; /**< actual hostname */ char account[ACCOUNTLEN + 1]; /**< IRC account name */