Log account rather than ident upon exit.
[ircu2.10.12-pk.git] / include / client.h
index 26f0481cdaf13a7e8a4704dc8ae44e90793d703c..d889fd36f27329c51d976250ce704fae2b439c3f 100644 (file)
@@ -317,6 +317,8 @@ struct Client {
 #define cli_username(cli)      ((cli)->cli_username)
 /** Get client realname (information field). */
 #define cli_info(cli)          ((cli)->cli_info)
+/** Get client account string. */
+#define cli_account(cli)       (cli_user(cli) ? cli_user(cli)->account : "0")
 
 /** Get number of incoming bytes queued for client. */
 #define cli_count(cli)         con_count(cli_connect(cli))