summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-20 21:39:01 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-20 21:39:01 +0000
commit097206878dedaba805d18e75ceb53a3726e75b36 (patch)
tree562f73215ae6dafb72d228ed932b3da0e1784f4c /src
parent751f9672abd8aa97177f72ac71cc8110ea479768 (diff)
downloadirssi-097206878dedaba805d18e75ceb53a3726e75b36.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/core/servers-setup.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 92f977b8..795baefa 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -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);
}