From 096e837ece5698a120c15f15c0c0347459cc69ac Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 14 Apr 2013 00:33:03 -0300 Subject: [PATCH] Add accounts to users in get_list --- src/common/plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/plugin.c b/src/common/plugin.c index 479994c8..c14db021 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -1276,7 +1276,7 @@ hexchat_list_fields (hexchat_plugin *ph, const char *name) }; static const char * const users_fields[] = { - "iaway", "shost", "tlasttalk", "snick", "sprefix", "srealname", "iselected", NULL + "saccount", "iaway", "shost", "tlasttalk", "snick", "sprefix", "srealname", "iselected", NULL }; static const char * const list_of_lists[] = { @@ -1405,6 +1405,8 @@ hexchat_list_str (hexchat_plugin *ph, hexchat_list *xlist, const char *name) case LIST_USERS: switch (hash) { + case 0xb9d38a2d: /* account */ + return ((struct User *)data)->account; case 0x339763: /* nick */ return ((struct User *)data)->nick; case 0x30f5a8: /* host */