Fix a refcounting issue in the whowas list handling.

When a user in one of the whowas lists rejoins, their entry is removed from
the whowas list (and added to a channel nicklist).  However the count of
entries in the whowas list wasn't being decremented, so eventually the client
thinks the lists are full when they're really empty... at this point only one
user at a time can be in the lists (so /WHOLEFT after a netsplit would only
show one user).



git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@77 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2009-10-16 12:35:56 +00:00
parent cb306c8947
commit b2a282feaa
4 changed files with 31 additions and 16 deletions

View File

@@ -2,9 +2,9 @@
#ifndef _WhoWas_h
#define _WhoWas_h
#define whowas_userlist_max 300
#define whowas_reg_max 500
#define whowas_chan_max 20
#define WHOWAS_USERLIST_MAX 300
#define WHOWAS_REG_MAX 500
#define WHOWAS_CHAN_MAX 20
#include "hash.h"
typedef struct _whowaschan_str {
@@ -38,7 +38,7 @@ typedef struct _whowas_wrap_str {
HashEntry NickListTable[WHOWASLIST_HASHSIZE];
} WhowasWrapList;
WhowasList *check_whowas_buffer (char *, char *, char *, int);
WhowasList *check_whowas_buffer (char *, char *, char *);
WhowasList *check_whowas_nick_buffer (char *, char *, int);
WhowasList *check_whosplitin_buffer (char *, char *, char *, int);