From a3dfdd3a17ae744aedfb985d66b024f38a5a81cd Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 21 Jan 2019 10:22:52 +0000
Subject: [PATCH] Fixed typo: security.restrictions, not security_restrictions!

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

diff --git a/exec/avatars.js b/exec/avatars.js
index 25bc8b9393..e5cd9ae2b7 100644
--- a/exec/avatars.js
+++ b/exec/avatars.js
@@ -330,7 +330,7 @@ function export_users(msgbase, realnames, all)
 		var u = new User(n);
 		if((u.settings&USER_DELETED)
 			|| !u.stats.total_posts			// No need to export avatars for users that have never posted
-			|| (u.security_restrictions&(UFLAG_P|UFLAG_N|UFLAG_Q)) // or will never post
+			|| (u.security.restrictions&(UFLAG_P|UFLAG_N|UFLAG_Q)) // or will never post
 			) {
 			if(verbosity)
 				printf("User #%u hasn't or can't post, skipping\r\n", n);
-- 
GitLab