summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-04-14 00:33:03 -0300
committerTingPing <tngpng@gmail.com>2013-04-14 00:33:03 -0300
commit096e837ece5698a120c15f15c0c0347459cc69ac (patch)
treeebd414315ec8e635550de610dba8da97555b1367 /src/common
parente67371d269eab88bb684a7c5d5e37190cdf805dd (diff)
Add accounts to users in get_list
Diffstat (limited to 'src/common')
-rw-r--r--src/common/plugin.c4
1 files changed, 3 insertions, 1 deletions
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 */