[mw-devel] [Git][milliways/mw][master] Fix #12: ignore the old protection flags in favour for the new system

Andrew Price welshbyte at sucs.org
Wed Oct 9 15:53:27 BST 2019


On 08/10/2019 12:19, Imran Hussain wrote:
> 
> 
> Imran Hussain pushed to branch master at milliways / mw
> 
> 
> Commits:
> ca54bacf by Imran Hussain at 2019-10-08T11:19:15Z
> Fix #12: ignore the old protection flags in favour for the new system
> - - - - -
> 
> 
> 1 changed file:
> 
> - src/server/actions.c
> 
> 
> Changes:
> 
> =====================================
> src/server/actions.c
> =====================================
> @@ -68,8 +68,10 @@ void accept_action(ipc_connection_t *conn, ipc_message_t *msg)
>   	/* what are the protection levels */
>   	int prot_vi = (victim.record.chatprivs & CP_PROTMASK) >> CP_PROTSHIFT;
>   	int prot_at = (attacker.record.chatprivs & CP_PROTMASK) >> CP_PROTSHIFT;
> -	if (!cp_test(&attacker, CP_PROTECT)) prot_at = 0;
> -	if (prot_vi == 0 && cm_test(&victim, CM_PROTECTED)) prot_vi = 1;
> +
> +    /* ignore the old protection flags in favour for the new def/att system */
> +	//if (!cp_test(&attacker, CP_PROTECT)) prot_at = 0;
> +	//if (prot_vi == 0 && cm_test(&victim, CM_PROTECTED)) prot_vi = 1;

Do, or do not, there is no commented-out.

Andy



More information about the mw-devel mailing list