Fix history - do not cache private messages.

This commit is contained in:
Jan Vidar Krey 2009-07-26 15:08:34 +02:00
parent 10615a9a1a
commit 31d4b0f0b1
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ int hub_handle_chat_message(struct hub_info* hub, struct hub_user* u, struct adc
if (relay && user_is_logged_in(u))
{
/* adc_msg_remove_named_argument(cmd, "PM"); */
hub_chat_history_add(hub, u, cmd);
if (cmd->cache[0] == 'B')
hub_chat_history_add(hub, u, cmd);
ret = route_message(hub, u, cmd);
}
hub_free(message);