1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Update session.c

This commit is contained in:
Jari Matilainen 2023-04-04 11:11:37 +02:00 committed by GitHub
parent c6ad171fe9
commit 7f66e4c8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,8 @@
#include <irssi/src/core/channels.h>
#include <irssi/src/core/nicklist.h>
#include <irssi/src/core/misc.h>
static char *session_file;
char *irssi_binary = NULL;
@ -65,6 +67,7 @@ static void cmd_upgrade(const char *data)
if (*data == '\0')
data = irssi_binary;
data = convert_home(data);
if ((binary = g_find_program_in_path(data)) == NULL)
cmd_return_error(CMDERR_PROGRAM_NOT_FOUND);