diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-17 12:22:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-17 12:22:56 +0000 |
commit | 8ea24002690314d567ddd1677ba18c25d19b8771 (patch) | |
tree | b46d7bf59884242df6f0544f74eb97d6b89c5cba /src/irc | |
parent | 234e95ef94804493a3c75f957dbc6bf8af58c5b3 (diff) | |
download | irssi-8ea24002690314d567ddd1677ba18c25d19b8771.zip |
Added /SET reuse_unused_windows setting, default is OFF
If window_close_on_part is ON, we don't anymore close the window if we
get kicked or connection gets lost. Also don't close DCC chat window if
the other side disconnects.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@357 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/query.h | 1 | ||||
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 1 | ||||
-rw-r--r-- | src/irc/dcc/dcc.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/core/query.h b/src/irc/core/query.h index c46a831e..bac2ccc5 100644 --- a/src/irc/core/query.h +++ b/src/irc/core/query.h @@ -14,6 +14,7 @@ typedef struct { char *address; char *server_tag; + int unwanted:1; /* TRUE if the other side closed or some error occured (DCC chats!) */ int destroying:1; } QUERY_REC; diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index 642cbb7e..44968ce0 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -166,6 +166,7 @@ static void dcc_chat_input(DCC_REC *dcc) ret = line_split(tmpbuf, recvlen, &str, (LINEBUF_REC **) &dcc->databuf); if (ret == -1) { /* connection lost */ + dcc->connection_lost = TRUE; signal_emit("dcc closed", 1, dcc); dcc_destroy(dcc); break; diff --git a/src/irc/dcc/dcc.h b/src/irc/dcc/dcc.h index eee5a069..f05f294b 100644 --- a/src/irc/dcc/dcc.h +++ b/src/irc/dcc/dcc.h @@ -53,6 +53,7 @@ typedef struct DCC_REC { int gotalldata:1; /* DCC fast send: got all acks from the other end (needed to make sure the end of transfer works right) */ int mirc_ctcp:1; /* DCC chat: Send CTCPs without the CTCP_MESSAGE prefix */ + int connection_lost:1; /* DCC chat: other side closed connection */ int destroyed:1; /* We're about to destroy this DCC recond */ /* read/write counter buffer */ |