From c50cd78b09d19b32647f4ca399a050198239edac Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Mon, 24 Oct 2022 15:48:00 -0700
Subject: [PATCH] More user details in the new user sysop-notification message

This adds a Ctrl-A code in the notification subject, so needs latest
postmsg.cpp or that Ctrl-A code will end up in your email/inbox too
(not really supported or stripped when sent over POP/SMTP).
---
 exec/newuser.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/exec/newuser.js b/exec/newuser.js
index 440c6dcbfc..7f064f6cdb 100644
--- a/exec/newuser.js
+++ b/exec/newuser.js
@@ -112,7 +112,12 @@ if(options.send_welcome && file_exists(welcome_msg) && !qnet && user.number>1) {
 }
 
 if(options.notify_sysop)
-	system.notify(options.notify_sysop, format("New user (#%u) created: %s", user.number, user.alias));
+	system.notify(options.notify_sysop
+		,format("New user created: \x01c%s #%u", user.alias, user.number)
+		,format("%s, %u %s from %s using %ux%u %s/%s via %s"
+			,user.name, user.age, user.gender, user.location
+			,console.screen_columns, console.screen_rows, console.charset, console.type
+			,user.connection));
 
 function send_newuser_welcome_msg(fname)
 {
-- 
GitLab