diff options
author | Timo Sirainen <cras@irssi.org> | 2001-05-11 16:08:48 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-05-11 16:08:48 +0000 |
commit | 1f23c05ee799bf028200f618fa74815b95382f5c (patch) | |
tree | bfbe9f1c73cd1e979dfb219f64f19efe77dd5b9a /src/irc/core/channel-events.c | |
parent | 7a1e526391d1d2f320325076ec4259a7c2a53e68 (diff) | |
download | irssi-1f23c05ee799bf028200f618fa74815b95382f5c.zip |
CHANNEL_REC->get_join_data() - Returns the information needed to call
SERVER_REC->channels_join() for this channel. Usually just the channel name,
but may contain also the channel key.
If we receive PART-message to channel that hasn't received a JOIN yet,
don't destroy the channel. It's probably because we did quickly /PART +
/JOIN.
Moved /CYCLE to fe-common/core, it doesn't close the window for the cycled
channel anymore if you had autoclosing on.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1484 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/channel-events.c')
-rw-r--r-- | src/irc/core/channel-events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index ff53d9b0..3e9d75e0 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -249,7 +249,7 @@ static void event_part(IRC_SERVER_REC *server, const char *data, const char *nic params = event_get_params(data, 2, &channel, &reason); chanrec = channel_find(SERVER(server), channel); - if (chanrec != NULL) { + if (chanrec != NULL && chanrec->joined) { chanrec->left = TRUE; channel_destroy(chanrec); } |