1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Don't crash with /reconnect <unknown tag>

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@984 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-09 22:58:59 +00:00 committed by cras
parent 062d662834
commit 877ec1793a

View File

@ -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;