summaryrefslogtreecommitdiff
path: root/HanksRT.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-12-28 10:31:09 +0000
committerDave Hibberd <d@vehibberd.com>2023-12-28 10:31:09 +0000
commit7a61c594e1bf9fd62e156d3d8db772fe7c4bfd03 (patch)
tree19d55bf6fcd52ce7bd67c10591c04a3cd2549b56 /HanksRT.c
parent2ccd083256a3a05ae1f402a0ef259fbfff709088 (diff)
New upstream version 6.0.24.25upstream/6.0.24.25
Diffstat (limited to 'HanksRT.c')
-rw-r--r--HanksRT.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/HanksRT.c b/HanksRT.c
index cfc6440..3a7d538 100644
--- a/HanksRT.c
+++ b/HanksRT.c
@@ -77,6 +77,8 @@ char PopupText[260] = "";
int PopupMode = 0;
int chatPaclen = 236;
+int reportChatEvents = 0;
+
char RtKnown[MAX_PATH] = "RTKnown.txt";
char RtUsr[MAX_PATH] = "STUsers.txt";
char RtUsrTemp[MAX_PATH] = "STUsers.tmp";
@@ -2079,6 +2081,18 @@ void text_tellu_Joined(USER * user)
sprintf(buf, "%s%-6.6s : %s *** Joined Chat, Topic %s", Stamp, user->call, user->name, user->topic->name);
+ if (reportChatEvents)
+ {
+
+#ifdef WIN32
+ if (pRunEventProgram)
+ pRunEventProgram("ChatNewUser.exe", user->call);
+#else
+ sprintf(prog, "%s/%s", BPQDirectory, "ChatNewUser");
+ RunEventProgram(prog, user->call);
+#endif
+ }
+
// Send it to all connected users in the same topic.
// Echo to originator if requested.
@@ -2109,14 +2123,6 @@ void text_tellu_Joined(USER * user)
nputc(circuit, 7);
nputc(circuit, 13);
-
-#ifdef WIN32
- if (pRunEventProgram)
- pRunEventProgram("ChatNewUser.exe", user->call);
-#else
- sprintf(prog, "%s/%s", BPQDirectory, "ChatNewUser");
- RunEventProgram(prog, user->call);
-#endif
}
}
// Tell one link circuit about a local user change of topic.
@@ -4170,6 +4176,7 @@ BOOL GetChatConfig(char * ConfigName)
ChatApplNum = GetIntValue(group, "ApplNum");
MaxChatStreams = GetIntValue(group, "MaxStreams");
+ reportChatEvents = GetIntValue(group, "reportChatEvents");
chatPaclen = GetIntValue(group, "chatPaclen");
GetStringValue(group, "OtherChatNodes", OtherNodesList);
GetStringValue(group, "ChatWelcomeMsg", ChatWelcomeMsg);
@@ -4201,6 +4208,7 @@ VOID SaveChatConfigFile(char * ConfigName)
SaveIntValue(group, "ApplNum", ChatApplNum);
SaveIntValue(group, "MaxStreams", MaxChatStreams);
+ SaveIntValue(group, "reportChatEvents", reportChatEvents);
SaveIntValue(group, "chatPaclen", chatPaclen);
SaveStringValue(group, "OtherChatNodes", OtherNodesList);
SaveStringValue(group, "ChatWelcomeMsg", ChatWelcomeMsg);