Cache the bitmask of the channel log level in the cset structure instead of the channel structure.
This fixes a bug where the cached channel log level bitmask was not correctly set unless you did a /cset CHANNEL_LOG_LEVEL after the channel had been joined, which resulted in most things not being logged. It makes most sense to cache the bitmask within the cset structure, and there was even an (ununsed) field already there for it. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@512 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -946,12 +946,10 @@ typedef struct channel_stru
|
||||
char *chanpass; /* if TS4 then this has the channel pass */
|
||||
char connected; /* true if this channel is actually connected */
|
||||
|
||||
|
||||
HashEntry NickListTable[NICKLIST_HASHSIZE];
|
||||
|
||||
chan_flags flags;
|
||||
|
||||
|
||||
time_t max_idle; /* max idle time for this channel */
|
||||
int tog_limit;
|
||||
int check_idle; /* toggle idle check */
|
||||
@@ -959,7 +957,6 @@ typedef struct channel_stru
|
||||
struct timeval channel_create; /* time for channel creation */
|
||||
struct timeval join_time; /* time of last join */
|
||||
|
||||
|
||||
int stats_ops; /* total ops I have seen in channel */
|
||||
int stats_dops; /* total dops I have seen in channel */
|
||||
int stats_bans; /* total bans I have seen in channel */
|
||||
@@ -988,12 +985,9 @@ typedef struct channel_stru
|
||||
|
||||
CSetList *csets; /* All Channel sets */
|
||||
|
||||
|
||||
|
||||
int msglog_on;
|
||||
FILE *msglog_fp;
|
||||
char *logfile;
|
||||
unsigned long log_level;
|
||||
|
||||
int totalnicks; /* total number of users in channel */
|
||||
int maxnicks; /* max number of users I have seen */
|
||||
@@ -1001,7 +995,6 @@ typedef struct channel_stru
|
||||
|
||||
int totalbans; /* total numbers of bans on channel */
|
||||
|
||||
|
||||
BanList *bans; /* pointer to list of bans on channel */
|
||||
BanList *exemptbans; /* pointer to list of bans on channel */
|
||||
int maxbans; /* max number of bans I have seen */
|
||||
|
||||
Reference in New Issue
Block a user