mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Simplify some logic in server_create_conn
This commit is contained in:
parent
8394973d5a
commit
e5ee243ab6
@ -321,10 +321,8 @@ server_create_conn(int chat_type, const char *dest, int port,
|
|||||||
chatrec = chatnet_find(dest);
|
chatrec = chatnet_find(dest);
|
||||||
if (chatrec != NULL) {
|
if (chatrec != NULL) {
|
||||||
rec = create_chatnet_conn(chatrec->name, port, password, nick);
|
rec = create_chatnet_conn(chatrec->name, port, password, nick);
|
||||||
if (rec != NULL)
|
/* If rec is NULL the chatnet has no url to connect to */
|
||||||
return rec;
|
return rec;
|
||||||
/* The chatnet has no url to connect to */
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
chatrec = chatnet == NULL ? NULL : chatnet_find(chatnet);
|
chatrec = chatnet == NULL ? NULL : chatnet_find(chatnet);
|
||||||
|
Loading…
Reference in New Issue
Block a user