Commit 68153812 authored by TingPing's avatar TingPing

Add channelkey to channel lists

parent bb1062ae
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment