From 715d89a0d523563cbff31ac6f29e1062f27c83d4 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 8 Jan 2009 23:43:26 +0000
Subject: [PATCH] Prompt guest account for e-mail address during logon.

---
 exec/logon.js | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/exec/logon.js b/exec/logon.js
index 60d6d69e32..edb0cfcac2 100644
--- a/exec/logon.js
+++ b/exec/logon.js
@@ -23,6 +23,17 @@ if(user.security.restrictions&UFLAG_G) {
 		user.name = name;
 		break;
 	}
+
+	while(bbs.online) {
+		printf("\1y\1hPlease enter your e-mail address: \1w");
+		email=console.getstr(50);
+		if(!email || !email.length)
+			continue;
+		bbs.log_str("  " + email);
+		user.netmail=email;
+		user.settings|=USER_NETMAIL;
+		break;
+	}
 	
 	while(bbs.online) {
 		printf("\1y\1hPlease enter your location (City, State): \1w");
@@ -44,6 +55,10 @@ if(user.security.restrictions&UFLAG_G) {
 		bbs.log_str(ref + "\r\n");
 		break;
 	}
+
+//	print("name: " + user.name);
+//	print("email: " + user.netmail);
+//	print("location: " + user.location);
 }
 
 
-- 
GitLab