From b7e62b46cc68c682824c6c2d152ea9d8a1296431 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Sun, 11 Apr 2010 20:13:05 +0200 Subject: [PATCH] Send message to old clients as a chat message not a status message. --- src/core/hub.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/hub.c b/src/core/hub.c index 09529a7..637ac63 100644 --- a/src/core/hub.c +++ b/src/core/hub.c @@ -207,7 +207,10 @@ int hub_handle_support(struct hub_info* hub, struct hub_user* u, struct adc_mess else { /* disconnect user for using an obsolete client. */ - hub_send_status(hub, u, status_msg_proto_obsolete_adc0, status_level_fatal); + struct adc_message* message = adc_msg_construct(ADC_CMD_IMSG, 6); + adc_msg_add_argument(message, hub->config->msg_proto_obsolete_adc0); + route_to_user(hub, u, message); + adc_msg_free(message); hub_disconnect_user(hub, u, quit_protocol_error); } }