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:
parent
062d662834
commit
877ec1793a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user