[mw-devel] [Git][milliways/mw][master] Fix #12: ignore the old protection flags in favour for the new system
Imran Hussain
imranh at sucs.org
Tue Oct 8 12:19:19 BST 2019
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;
/* attacker was stronger, success */
if (prot_at >= prot_vi) success = 1;
View it on GitLab: https://projects.sucs.org/milliways/mw/commit/ca54bacf25f4b18eeba436181dd16c29958fd142
--
View it on GitLab: https://projects.sucs.org/milliways/mw/commit/ca54bacf25f4b18eeba436181dd16c29958fd142
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20191008/88e6095b/attachment.html>
More information about the mw-devel
mailing list