From 496db0eefc2440097d11aace182acda2901c4fe9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 14 Dec 2001 16:11:13 +0000 Subject: [PATCH] Redirections were broken if server_redirect_event() didn't list the stop event. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2246 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/servers-redirect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irc/core/servers-redirect.c b/src/irc/core/servers-redirect.c index b4e6b433..389c892d 100644 --- a/src/irc/core/servers-redirect.c +++ b/src/irc/core/servers-redirect.c @@ -507,7 +507,8 @@ server_redirect_get(IRC_SERVER_REC *server, const char *event, if (strncmp(event, "event ", 6) == 0 && isdigit(event[6])) { signal = (*redirect)->default_signal; - *match = MATCH_START; + if (*match == MATCH_NONE) + *match = MATCH_START; } else { /* not a numeric, so we've lost the stop event.. */