diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-12-28 10:31:16 +0000 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-12-28 10:31:16 +0000 |
| commit | ce4f1b11b05dfe6e62d7d99efba9a6a1ccd119ad (patch) | |
| tree | ca6773b341a5846c7f7a903cf4dc79f740876680 /HanksRT.c | |
| parent | 1fbded9d3afd766e861577ba08d0f86f952de64e (diff) | |
| parent | 7a61c594e1bf9fd62e156d3d8db772fe7c4bfd03 (diff) | |
Update upstream source from tag 'upstream/6.0.24.25'
Update to upstream version '6.0.24.25'
with Debian dir c5f88a7af8f9d384ddf818129c71d1a6a7836522
Diffstat (limited to 'HanksRT.c')
| -rw-r--r-- | HanksRT.c | 24 |
1 files changed, 16 insertions, 8 deletions
@@ -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);
|
