Fix for bug #156

This commit is contained in:
Jan Vidar Krey 2010-12-20 11:52:15 +01:00
parent b993e97bb4
commit 4ede1b2d8a

View File

@ -309,7 +309,10 @@ int hub_handle_chat_message(struct hub_info* hub, struct hub_user* u, struct adc
else if (private_msg) else if (private_msg)
{ {
struct hub_user* target = uman_get_user_by_sid(hub, cmd->target); 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) if (status == st_deny)