summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-09-07 20:17:42 -0400
committerTingPing <tingping@tingping.se>2013-09-07 20:17:42 -0400
commit68153812f75ef446ed9034031037eb1fcce9e743 (patch)
tree2d5c8568467ebc7fa004d69acaf7f1c961e06397 /src/common
parentbb1062ae2a623d74362b92c2d025a05c03fe7694 (diff)
Add channelkey to channel lists
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 9ce387c8..d186679a 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -1381,7 +1381,7 @@ hexchat_list_fields (hexchat_plugin *ph, const char *name)
 	};
 	static const char * const channels_fields[] =
 	{
-		"schannel",	"schantypes", "pcontext", "iflags", "iid", "ilag", "imaxmodes",
+		"schannel",	"schannelkey", "schantypes", "pcontext", "iflags", "iid", "ilag", "imaxmodes",
 		"snetwork", "snickmodes", "snickprefixes", "iqueue", "sserver", "itype", "iusers",
 		NULL
 	};
@@ -1476,6 +1476,8 @@ hexchat_list_str (hexchat_plugin *ph, hexchat_list *xlist, const char *name)
 		{
 		case 0x2c0b7d03: /* channel */
 			return ((session *)data)->channel;
+		case 0x8cea5e7c: /* channelkey */
+			return ((session *)data)->channelkey;
 		case 0x577e0867: /* chantypes */
 			return ((session *)data)->server->chantypes;
 		case 0x38b735af: /* context */