summaryrefslogtreecommitdiff
path: root/HanksRT.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2022-11-18 17:03:39 +0000
committerg8bpq <john.wiseman@cantab.net>2022-11-18 17:03:39 +0000
commit6c6848bdcbedcee989fefdd8d39105e7022aeae3 (patch)
treec1166ae74429c01bffcaef358768310577f0ef69 /HanksRT.c
parentf4bc43f75d0ee3bea207e99f745fb5585b192f48 (diff)
6.0.23.2723.2923.27
Diffstat (limited to 'HanksRT.c')
-rw-r--r--HanksRT.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/HanksRT.c b/HanksRT.c
index 4cc137b..7885c11 100644
--- a/HanksRT.c
+++ b/HanksRT.c
@@ -36,6 +36,9 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
iconv_t link_toUTF8 = NULL;
+
+BOOL RunEventProgram(char * Program, char * Param);
+
#endif
BOOL ProcessChatConnectScript(ChatCIRCUIT * conn, char * Buffer, int len);
@@ -48,6 +51,7 @@ void ChatWriteLogLine(ChatCIRCUIT * conn, int Flag, char * Msg, int MsgLen, int
extern struct SEM ChatSemaphore;
UCHAR * APIENTRY GetLogDirectory();
char * APIENTRY GetBPQDirectory();
+VOID WriteMiniDump();
extern SOCKADDR_IN Chatreportdest;
@@ -114,6 +118,9 @@ time_t RunningConnectScript = 0;
//#define free(p)
+typedef int (WINAPI FAR *FARPROCX)();
+extern FARPROCX pRunEventProgram;
+
int ChatIsUTF8(unsigned char *ptr, int len)
{
int n;
@@ -1935,6 +1942,7 @@ void text_tellu_Joined(USER * user)
struct tm * tm;
char Stamp[20];
time_t T;
+ char prog[256] = "";
T = time(NULL);
tm = gmtime(&T);
@@ -1973,6 +1981,14 @@ 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.