From 19b9f7233775c617dc7687ebb1622c593b594809 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Thu, 11 Feb 2010 01:19:58 +0100 Subject: [PATCH] Make sure !version agrees with the connect time banner (same format). --- src/core/commands.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/commands.c b/src/core/commands.c index 9efcd43..f19f7f6 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -318,7 +318,12 @@ static int command_shutdown(struct hub_info* hub, struct hub_user* user, struct static int command_version(struct hub_info* hub, struct hub_user* user, struct hub_command* cmd) { - return command_status(hub, user, cmd, "Powered by " PRODUCT "/" VERSION); + const char* tmp; + if (hub->config->show_banner_sys_info) + tmp = "Powered by " PRODUCT_STRING " on " OPSYS "/" CPUINFO; + else + tmp = "Powered by " PRODUCT_STRING; + return command_status(hub, user, cmd, tmp); } static int command_myip(struct hub_info* hub, struct hub_user* user, struct hub_command* cmd)