From 9f7444baa2001616f227ba9a442be824a57e56b9 Mon Sep 17 00:00:00 2001 From: TingPing Date: Wed, 31 Dec 2014 03:34:55 -0500 Subject: Move userlist sorting to frontend This Fixes possible crashes when the two usertrees get out of sync and a double free occurs. Also now requires restart to change sort orders. Fixes #1252 Fixes #818 (probably) --- src/common/hexchat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/hexchat.h') diff --git a/src/common/hexchat.h b/src/common/hexchat.h index dfb1c52f..a5b61a26 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -37,6 +37,7 @@ #endif #include "history.h" +#include "tree.h" #ifdef USE_OPENSSL #include /* SSL_() */ @@ -369,8 +370,7 @@ typedef struct session guint8 text_strip; struct server *server; - void *usertree_alpha; /* pure alphabetical tree */ - void *usertree; /* ordered with Ops first */ + tree *usertree; /* alphabetical tree */ struct User *me; /* points to myself in the usertree */ char channel[CHANLEN]; char waitchannel[CHANLEN]; /* waiting to join channel (/join sent) */ -- cgit 1.4.1