BUGFIX: Resize chanarray on JOIN/PART

This commit is contained in:
Alex D. 2021-01-04 18:36:30 +00:00
parent 9b07bcb10b
commit d6491bb593
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 2 additions and 1 deletions

View File

@ -32,8 +32,8 @@
#include <string.h> // strerror()
#include <sys/socket.h> // sockaddr connect()
#include <sys/types.h> // size_t ssize_t socklen_t
#include <unistd.h> // ??
#include <time.h>
#include <unistd.h> // ??
#define UIRC_HELPERS
#include <uirc/uirc.h> // Assm_mesg Assm_cmd...
@ -200,6 +200,7 @@ auto_msg_actions(IRC_Message* mesg, Connection* conn, Buffer_Info* buf)
}
case (JOIN):
case (PART): {
resize_chanarray(&conn->info.channels);
set_channel(&conn->info.channels[get_channelindex(mesg->args[0], conn->info.channels)],
mesg->args[0],
mesg->args[1],