From 4ede1b2d8a3f5f89b72758c7e01d73cb2c882d26 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 20 Dec 2010 11:52:15 +0100 Subject: [PATCH] Fix for bug #156 --- 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 a60d89d..e851d0c 100644 --- a/src/core/hub.c +++ b/src/core/hub.c @@ -309,7 +309,10 @@ int hub_handle_chat_message(struct hub_info* hub, struct hub_user* u, struct adc else if (private_msg) { struct hub_user* target = uman_get_user_by_sid(hub, cmd->target); - status = plugin_handle_private_message(hub, u, target, message, 0); + if (target) + status = plugin_handle_private_message(hub, u, target, message, 0); + else + relay = 0; } if (status == st_deny)