mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
When assiging chatnet to server connect record, always try to get the name
from chatnets list so the case will be correct. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1868 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
751f9672ab
commit
097206878d
@ -288,15 +288,21 @@ server_create_conn(int chat_type, const char *dest, int port,
|
||||
const char *nick)
|
||||
{
|
||||
SERVER_CONNECT_REC *rec;
|
||||
CHATNET_REC *chatrec;
|
||||
|
||||
g_return_val_if_fail(dest != NULL, NULL);
|
||||
|
||||
if (chatnet_find(dest) != NULL) {
|
||||
rec = create_chatnet_conn(dest, port, password, nick);
|
||||
chatrec = chatnet_find(dest);
|
||||
if (chatrec != NULL) {
|
||||
rec = create_chatnet_conn(chatrec->name, port, password, nick);
|
||||
if (rec != NULL)
|
||||
return rec;
|
||||
}
|
||||
|
||||
chatrec = chatnet_find(chatnet);
|
||||
if (chatrec != NULL)
|
||||
chatnet = chatrec->name;
|
||||
|
||||
return create_addr_conn(chat_type, dest, port,
|
||||
chatnet, password, nick);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user