1
0
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:
LemonBoy 2016-03-22 15:45:08 +01:00
parent 8394973d5a
commit e5ee243ab6

View File

@ -321,10 +321,8 @@ server_create_conn(int chat_type, const char *dest, int port,
chatrec = chatnet_find(dest);
if (chatrec != NULL) {
rec = create_chatnet_conn(chatrec->name, port, password, nick);
if (rec != NULL)
return rec;
/* The chatnet has no url to connect to */
return NULL;
/* If rec is NULL the chatnet has no url to connect to */
return rec;
}
chatrec = chatnet == NULL ? NULL : chatnet_find(chatnet);