summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-09 22:58:59 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-09 22:58:59 +0000
commit877ec1793a5d6f8e06ad58793297c68a33d94417 (patch)
treef9b81e84d5089f090b9a48ebf35275c4514195e1 /src
parent062d6628341d31d03ea8ed5eeb8c446c060d4a3a (diff)
downloadirssi-877ec1793a5d6f8e06ad58793297c68a33d94417.zip
Don't crash with /reconnect <unknown tag>
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@984 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/core/servers-reconnect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c
index cfe19acc..91e4c883 100644
--- a/src/core/servers-reconnect.c
+++ b/src/core/servers-reconnect.c
@@ -312,8 +312,10 @@ static void cmd_reconnect(const char *data, SERVER_REC *server)
tag = atoi(data);
rec = tag <= 0 ? NULL : reconnect_find_tag(tag);
- if (rec == NULL)
+ if (rec == NULL) {
signal_emit("server reconnect not found", 1, data);
+ return;
+ }
}
conn = rec->conn;