From 96deb8692fa036bc2aef85048bce3295e9c63300 Mon Sep 17 00:00:00 2001 From: MeaTLoTioN Date: Sun, 16 Oct 2022 20:55:17 +0100 Subject: [PATCH] Sun Oct 16 20:55:17 BST 2022 --- mrc_client.mps | 11 ++++++----- mrc_client.py | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/mrc_client.mps b/mrc_client.mps index ae9cb29..d293c55 100644 --- a/mrc_client.mps +++ b/mrc_client.mps @@ -444,7 +444,8 @@ Begin Write('|08') For X:=1 To WinSize+1 Do Begin GoToXy(1,WinTT+X-1) - Write(ChatLines[Y]+'|16|$X80 ') + //Write(ChatLines[Y]+'|16|$X80 ') + Write(ChatLines[Y]+'|16|[K ') Y:=Y+1 End RefreshChat := False @@ -1341,8 +1342,8 @@ Begin // Init the buffer input bar [sf] GoToXy(PromptX,PromptY) - Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + - CursorBg + Cursor + InputClr + '|$X78' + InputBg) + //Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + CursorBg + Cursor + InputClr + '|$X78' + InputBg) + Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + CursorBg + Cursor + InputClr + '|[K' + InputBg) Repeat While Not Keypressed Do @@ -1652,8 +1653,8 @@ Begin // Update input bar [sf] GoToXy(PromptX,PromptY) - Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + - DBuf + CursorBg + Cursor + InputClr + '|$X78' + InputBg + '|16') + //Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + CursorBg + Cursor + InputClr + '|$X78' + InputBg + '|16') + Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + CursorBg + Cursor + InputClr + '|[K' + InputBg + '|16') // Handle counter color coding [sf] CClr := 7 diff --git a/mrc_client.py b/mrc_client.py index bacc5f5..795a9ed 100755 --- a/mrc_client.py +++ b/mrc_client.py @@ -105,6 +105,7 @@ def stripmci(text): return re.sub('\|[0-9]{2}', '', text) # Sat Feb 6 16:55:18 2021 IN: SERVER~~~MeaTLoTioN~~a789653hgjk3876yhuk~ROOMTOPIC:a789653hgjk3876yhuk:test~ +# Sat Aug 27 23:37:50 2022 IN: SERVER~~~MeaTLoTioN~~testing~ROOMTOPIC:testing:test~ # User chatlog for DLCHATLOG def chatlog(data): if "CLIENT~" not in data and "SERVER~" not in data: @@ -120,6 +121,19 @@ def chatlog(data): clog.write("%s %s %s\n" % (ltime, room, message)) clog.close() + ltime=time.asctime(time.localtime(time.time())) + packet = data.split("~") + if packet[5]: + room = packet[5] + else: + room = packet[2] + message = stripmci(packet[6]) + #if room == 'testing': + # clogfile = "%s%smrcchat.log" % (mrcdir, os.sep) + # clog = open(clogfile, "a") + # clog.write("%s %s %s\n" % (ltime, room, message)) + # clog.close() + # Console logger def logger(loginfo): ltime = time.asctime(time.localtime(time.time()))