Added mute/unmute functionality.

This commit is contained in:
Jan Vidar Krey
2010-01-19 22:58:03 +01:00
parent f84f3b1fff
commit 80c6ad9d76
5 changed files with 30 additions and 5 deletions

View File

@@ -206,7 +206,7 @@ int hub_handle_chat_message(struct hub_info* hub, struct hub_user* u, struct adc
}
}
if (hub->config->chat_is_privileged && !user_is_protected(u) && (cmd->cache[0] == 'B' || cmd->cache[0] == 'F'))
if (((hub->config->chat_is_privileged && !user_is_protected(u)) || (user_flag_get(u, flag_muted))) && (cmd->cache[0] == 'B' || cmd->cache[0] == 'F'))
{
relay = 0;
}