From ea7fb3242074ca9b7388da9faab0ecc3e07c8c82 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Wed, 7 Oct 2020 00:31:06 -0700
Subject: [PATCH] Fix C-restriction check. Thanks for the report Mortifis.

---
 exec/privatemsg.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/privatemsg.js b/exec/privatemsg.js
index 8640ea9a00..b81c5dc954 100644
--- a/exec/privatemsg.js
+++ b/exec/privatemsg.js
@@ -18,7 +18,7 @@ var saved_node_action = bbs.node_action;
 
 outer_loop:
 while(bbs.online && !(console.aborted)) {
-	if(user.reststrictions&UFLAG_C) {
+	if(user.security.restrictions & UFLAG_C) {
 		console.print(bbs.text(R_SendMessages));
 		break; 
 	}
-- 
GitLab