mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +02:00
Connection updates: moved /SERVER and /CONNECT to core from irc.
Several other related multiprotocol updates. Removed /SILCSERVER from SILC, /CONNECT and /SERVER should work properly now. Rejoining channels after reconnection works. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1245 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fa1715b515
commit
b8375d471f
12 changed files with 253 additions and 252 deletions
|
|
@ -176,7 +176,12 @@ create_addr_conn(int chat_type, const char *address, int port,
|
|||
g_return_val_if_fail(address != NULL, NULL);
|
||||
|
||||
sserver = server_setup_find(address, port);
|
||||
if (sserver != NULL) chat_type = sserver->chat_type;
|
||||
if (sserver != NULL) {
|
||||
if (chat_type < 0)
|
||||
chat_type = sserver->chat_type;
|
||||
else if (chat_type != sserver->chat_type)
|
||||
sserver = NULL;
|
||||
}
|
||||
|
||||
proto = chat_type >= 0 ? chat_protocol_find_id(chat_type) :
|
||||
chat_protocol_get_default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue