summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-14 16:11:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-14 16:11:13 +0000
commit496db0eefc2440097d11aace182acda2901c4fe9 (patch)
tree8ae21fc0a94ae8d1a6776d4218f6e3d49206d5c1 /src/irc
parent369ce5d699c302fa6c856a9a5836aaf4b4b79fc2 (diff)
downloadirssi-496db0eefc2440097d11aace182acda2901c4fe9.zip
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
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/servers-redirect.c3
1 files changed, 2 insertions, 1 deletions
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.. */