diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-03-22 15:45:08 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-03-22 15:45:08 +0100 |
commit | e5ee243ab6ff7f640bdd45a232ad81ed97520a46 (patch) | |
tree | 576f049cb1f435981ca65a627d58759b3eb103b3 /src/core/servers-setup.c | |
parent | 8394973d5a3f37523e95fb5b51620de9284d743f (diff) | |
download | irssi-e5ee243ab6ff7f640bdd45a232ad81ed97520a46.zip |
Simplify some logic in server_create_conn
Diffstat (limited to 'src/core/servers-setup.c')
-rw-r--r-- | src/core/servers-setup.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c index 990d2d4b..0cecfece 100644 --- a/src/core/servers-setup.c +++ b/src/core/servers-setup.c @@ -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); |