Remove quitmsg from struct
This commit is contained in:
parent
b325599808
commit
e392076e19
|
@ -30,7 +30,7 @@ IRC_Capability* uirc_malloc_capability(const char* name);
|
|||
IRC_User* uirc_malloc_user(const char* nick, const char* user, const char* real, const char* host);
|
||||
IRC_Message* uirc_malloc_message(const char* command, ...);
|
||||
IRC_Buffer* uirc_malloc_buffer(const char* name, const char* topic, const char* key);
|
||||
IRC_Network* uirc_malloc_network(const char* addr, const char* svc, const char* pass, const char* quitmsg);
|
||||
IRC_Network* uirc_malloc_network(const char* addr, const char* svc, const char* pass);
|
||||
|
||||
#ifdef UIRC_FEATURE_IRCV3
|
||||
void uirc_free_tag(IRC_Tag* t);
|
||||
|
|
|
@ -69,7 +69,7 @@ typedef struct {
|
|||
} IRC_Buffer;
|
||||
|
||||
typedef struct {
|
||||
char * addr, *svc, *pass, *quitmsg;
|
||||
char * addr, *svc, *pass;
|
||||
IRC_User* user;
|
||||
llist_t* buf_list;
|
||||
#ifdef UIRC_FEATURE_IRCV3
|
||||
|
|
|
@ -158,7 +158,7 @@ uirc_malloc_buffer(const char* name, const char* topic, const char* key)
|
|||
}
|
||||
|
||||
IRC_Network*
|
||||
uirc_malloc_network(const char* addr, const char* svc, const char* pass, const char* quitmsg)
|
||||
uirc_malloc_network(const char* addr, const char* svc, const char* pass)
|
||||
{
|
||||
IRC_Network* ret;
|
||||
assert(addr != NULL);
|
||||
|
@ -179,12 +179,6 @@ uirc_malloc_network(const char* addr, const char* svc, const char* pass, const c
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
if (quitmsg != NULL) {
|
||||
if ((ret->quitmsg = malloc_string(quitmsg, strlen(quitmsg))) == NULL) {
|
||||
uirc_free_network(ret);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
@ -101,7 +101,6 @@ uirc_free_network(IRC_Network* n)
|
|||
free(n->addr);
|
||||
free(n->svc);
|
||||
free(n->pass);
|
||||
free(n->quitmsg);
|
||||
|
||||
if (n->user != NULL) {
|
||||
uirc_free_user(n->user);
|
||||
|
|
Reference in New Issue