diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-10-10 22:07:04 +0100 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-10-10 22:07:04 +0100 |
| commit | 7b2a99c53b210949fb2e993e65b6be66a9cbf7a1 (patch) | |
| tree | e5feda7463d38022eef6eedf032423189e9d3dce /ChatHTMLConfig.c | |
| parent | 084ecb74f6007abbb7e1578675964ac9352ef822 (diff) | |
New upstream version 6.0.24.15upstream/6.0.24.15
Diffstat (limited to 'ChatHTMLConfig.c')
| -rw-r--r-- | ChatHTMLConfig.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ChatHTMLConfig.c b/ChatHTMLConfig.c index 310e729..b4d90b6 100644 --- a/ChatHTMLConfig.c +++ b/ChatHTMLConfig.c @@ -37,6 +37,7 @@ extern char OurNode[10]; extern char PassError[];
extern char BusyError[];
+extern int chatPaclen;
extern char NodeTail[];
extern BOOL APRSApplConnected;
@@ -317,6 +318,10 @@ VOID SaveChatInfo(struct HTTPConnectionInfo * Session, char * MsgPtr, char * Rep ChatApplNum = atoi(Temp);
GetParam(input, "Streams=", Temp);
MaxChatStreams = atoi(Temp);
+ GetParam(input, "Paclen=", Temp);
+ chatPaclen = atoi(Temp);
+ if (chatPaclen < 60)
+ chatPaclen = 60;
GetParam(input, "nodes=", Nodes);
@@ -503,7 +508,7 @@ scan: Len = sprintf(Reply, ChatConfigTemplate,
OurNode, Key, Key, Key,
- ChatApplNum, MaxChatStreams, Nodes, Position,
+ ChatApplNum, MaxChatStreams, Nodes, chatPaclen, Position,
(PopupMode) ? UNC : CHKD,
(PopupMode) ? CHKD : UNC, Text, ptr2);
@@ -520,9 +525,9 @@ VOID SendChatStatusPage(char * Reply, int * ReplyLen, char * Key) char * Topic;
LINK *link;
- char Streams[8192];
- char Users[8192];
- char Links[8192];
+ char Streams[65536];
+ char Users[65536];
+ char Links[65536];
ChatCIRCUIT * conn;
int i = 0, n;
|
