mirror of
https://github.com/irssi/irssi.git
synced 2026-08-13 13:42:13 +02:00
Throw an error when a chatnet has no available url
If you type /connect <CN> and the chatnet <CN> has no url available let's just throw an error instead of trying to process <CN> as a url.
This commit is contained in:
parent
795b7de808
commit
6745dd6159
6 changed files with 15 additions and 2 deletions
|
|
@ -323,6 +323,8 @@ server_create_conn(int chat_type, const char *dest, int port,
|
|||
rec = create_chatnet_conn(chatrec->name, port, password, nick);
|
||||
if (rec != NULL)
|
||||
return rec;
|
||||
/* The chatnet has no url to connect to */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
chatrec = chatnet == NULL ? NULL : chatnet_find(chatnet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue