1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Irssi didn't properly abort a redirection of which end event it missed.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2152 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-25 20:55:45 +00:00 committed by cras
parent e246ca668b
commit 53bdd8f602

View File

@ -336,6 +336,9 @@ static const char *redirect_match(REDIRECT_REC *redirect, const char *event,
const char *signal;
int stop_signal;
if (redirect->aborted)
return NULL;
/* get the signal for redirection event - if it's not found we'll
use the default signal */
signal = NULL;
@ -475,8 +478,11 @@ server_redirect_get(IRC_SERVER_REC *server, const char *event,
} else {
/* not a numeric, so we've lost the
stop event.. */
(*redirect)->destroyed = TRUE;
(*redirect)->aborted = TRUE;
redirect_abort(server, *redirect);
*redirect = NULL;
signal = NULL;
}
}
}