diff --git a/src/unrealircdctl.c b/src/unrealircdctl.c index fc1f719a7..ddb094e06 100644 --- a/src/unrealircdctl.c +++ b/src/unrealircdctl.c @@ -25,6 +25,13 @@ */ #include "unrealircd.h" +#ifdef _WIN32 + #define UNREALCMD "unrealircdctl" +#else + #define UNREALCMD "./unrealircd" +#endif + + extern int procio_client(const char *command, int auto_color_logs); void unrealircdctl_usage(const char *program_name) @@ -188,7 +195,7 @@ void unrealircdctl_spkifp(int argc, char *argv[]) { printf("NOTE: This script uses the default certificate location (any set::tls settings\n" "are ignored). If this is not what you want then specify a certificate\n" - "explicitly like this: ./unrealircd spkifp conf/tls/example.pem\n\n"); + "explicitly like this: %s spkifp conf/tls/example.pem\n\n", UNREALCMD); safe_strdup(file, "tls/server.cert.pem"); convert_to_absolute_path(&file, CONFDIR); } @@ -196,8 +203,8 @@ void unrealircdctl_spkifp(int argc, char *argv[]) if (!file_exists(file)) { printf("Could not open certificate: %s\n" - "You can specify a certificate like this: ./unrealircd spkifp conf/tls/example.pem\n", - file); + "You can specify a certificate like this: %s spkifp conf/tls/example.pem\n", + UNREALCMD, file); exit(1); }