BUGFIX: Resize chanarray on JOIN/PART
This commit is contained in:
parent
9b07bcb10b
commit
d6491bb593
|
@ -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],
|
||||
|
|
Reference in New Issue