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

View File

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