11/**RELAY EXEC CHAT PROGRAM */
22/* */
33/* An NJE (bitnet/HNET) chat server */
4- /* for VM/SP r4-r6 */
4+ /* for z/VM, VM/ESA and VM/SP */
55/* */
66/* */
77/* */
8- /* copyright 2020-2024 by moshix */
8+ /* copyright 2020, 2024 by moshix */
99/* Apache 2.0 license */
1010/***************************************/
1111
12- /* configuraiton parameters - IMPORTANT */
13- relaychatversion="2.4 .0" /* needed for federation compatibility check */
12+ /* configuraiton parameters - IMPORTANT */
13+ relaychatversion="2.5 .0" /* needed for federation compatibility check */
1414timezone="CDT" /* adjust for your server IMPORTANT */
1515maxdormant = 3000 /* max time user can be dormat */
16- localnode ="MOSHIX " /* IMPORTANT configure your RSCS node here!! */
17- shutdownpswd="xxxxxxxxx " /* any user who sends this password shuts down the chat server*/
16+ localnode ="MOSadfaX " /* IMPORTANT configure your RSCS node here!! */
17+ shutdownpswd="1adfdasf189 " /* any user who sends this password shuts down the chat server*/
1818osversion="VM/SP r5" /* OS version for enquries and stats */
1919typehost="Hercules" /* what kind of machine */
2020hostloc ="Chicago, IL" /* where is this machine */
21- sysopname="Moshix " /* who is the sysop for this chat server */
22- sysopemail="moshix @gmail" /* where to contact this systop */
21+ sysopname="Moadffaddf " /* who is the sysop for this chat server */
22+ sysopemail="mosadf @gmail" /* where to contact this systop */
2323compatibility=1 /* 1 VM/SP 6, 2=VM/ESA and up */
2424
2525if compatibility >1 then do /* this is not VM/SP 6, ie min requirement VM level*/
@@ -170,6 +170,10 @@ handlemsg:
170170 signal xit
171171 end
172172
173+ when (umsg = "/VERSION") then do
174+ call version userid,node
175+ end
176+
173177 otherwise
174178 call sendchatmsg userid,node,msg
175179 end
@@ -326,9 +330,10 @@ sendstats:
326330 'TELL' userid 'AT' node '-> Hihgest nr. of users: 'highestusers
327331 'TELL' userid 'AT' node '-> total number of msgs : 'totmessages
328332 'TELL' userid 'AT' node '-> Server up since : 'starttime' 'timezone
329- 'TELL' userid 'AT' node '-> System CPU laod : 'cpu' %'
333+ 'TELL' userid 'AT' node '-> System CPU load : 'cpu' %'
334+ 'TELL' userid 'AT' node '-> RELAY CHAT version : 'relaychatversion
330335
331- totmessages = totmessages+ 5
336+ totmessages = totmessages+ 6
332337return
333338
334339helpuser:
@@ -346,12 +351,13 @@ helpuser:
346351 'TELL' userid 'AT' node '/LOGOFF to logoff and stop getting chat messages'
347352 'TELL' userid 'AT' node '/STATS for chat statistics'
348353 'TELL' userid 'AT' node '/SYSTEM for info aobut this host'
354+ 'TELL' userid 'AT' node '/VERSION to obtain the version of this RELAY CHAT system'
349355 'TELL' userid 'AT' node ' '
350356/* 'TELL' userid 'AT' node '/ROOM 1-9 to join any room, default is room zero (0)'*/
351357 'TELL' userid 'AT' node ' messages with <-> are incoming chat messages...'
352358 'TELL' userid 'AT' node ' messages with > are service messages from chat servers'
353359
354- totmessages = totmessages + 11
360+ totmessages = totmessages + 12
355361return
356362
357363countusers:
@@ -367,6 +373,13 @@ countusers:
367373 end
368374return onlineusers
369375
376+ version:
377+ /* send version number to user */
378+ parse ARG userid,node
379+ listuser = userid"@"node
380+ 'TELL' userid 'AT' node ' > Version of this RELAY CHAT system: 'relaychatversion
381+ totmessages = totmessages + 1
382+ return
370383
371384announce:
372385/* announce newly logged on user to all users */
0 commit comments