Some cleanups in quit message handling. Fixed a bug where a quit from a user
that isn't in a channel with the client (god knows how *that* happens, but someone reported the bug...) could crash the client, because a NULL pointer is passed to logmsg(). The bug didn't show under glibc because it handles the NULL pointer OK. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@58 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -702,7 +702,7 @@ put_it("%s", convert_output_format(" %CIdle user check is %K[%R$0-%K]", "%s", n
|
||||
|
||||
}
|
||||
|
||||
void update_stats(int what, char *channel, NickList *nick, ChannelList *chan, int splitter)
|
||||
void update_stats(int what, NickList *nick, ChannelList *chan, int splitter)
|
||||
{
|
||||
time_t this_time = now;
|
||||
int t = 0;
|
||||
@@ -1073,7 +1073,7 @@ unsigned char *newline;
|
||||
}
|
||||
|
||||
|
||||
int check_split(char *nick, char *reason, char *chan)
|
||||
int check_split(char *nick, char *reason)
|
||||
{
|
||||
char *bogus = get_string_var(FAKE_SPLIT_PATS_VAR);
|
||||
char *Reason;
|
||||
|
||||
Reference in New Issue
Block a user