Sun Oct 16 20:55:17 BST 2022

This commit is contained in:
MeaTLoTioN 2022-10-16 20:55:17 +01:00
parent 0c511b3e85
commit 96deb8692f
2 changed files with 20 additions and 5 deletions

View File

@ -444,7 +444,8 @@ Begin
Write('|08') Write('|08')
For X:=1 To WinSize+1 Do Begin For X:=1 To WinSize+1 Do Begin
GoToXy(1,WinTT+X-1) GoToXy(1,WinTT+X-1)
Write(ChatLines[Y]+'|16|$X80 ') //Write(ChatLines[Y]+'|16|$X80 ')
Write(ChatLines[Y]+'|16|[K ')
Y:=Y+1 Y:=Y+1
End End
RefreshChat := False RefreshChat := False
@ -1341,8 +1342,8 @@ Begin
// Init the buffer input bar [sf] // Init the buffer input bar [sf]
GoToXy(PromptX,PromptY) GoToXy(PromptX,PromptY)
Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + //Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + CursorBg + Cursor + InputClr + '|$X78' + InputBg)
CursorBg + Cursor + InputClr + '|$X78' + InputBg) Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + CursorBg + Cursor + InputClr + '|[K' + InputBg)
Repeat Repeat
While Not Keypressed Do While Not Keypressed Do
@ -1652,8 +1653,8 @@ Begin
// Update input bar [sf] // Update input bar [sf]
GoToXy(PromptX,PromptY) GoToXy(PromptX,PromptY)
Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + //Write('|16' + MyNamePrompt + InputClr + GetPipe(CIdx) + DBuf + CursorBg + Cursor + InputClr + '|$X78' + InputBg + '|16')
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] // Handle counter color coding [sf]
CClr := 7 CClr := 7

View File

@ -105,6 +105,7 @@ def stripmci(text):
return re.sub('\|[0-9]{2}', '', text) return re.sub('\|[0-9]{2}', '', text)
# Sat Feb 6 16:55:18 2021 IN: SERVER~~~MeaTLoTioN~~a789653hgjk3876yhuk~ROOMTOPIC:a789653hgjk3876yhuk:test~ # 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 # User chatlog for DLCHATLOG
def chatlog(data): def chatlog(data):
if "CLIENT~" not in data and "SERVER~" not in 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.write("%s %s %s\n" % (ltime, room, message))
clog.close() 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 # Console logger
def logger(loginfo): def logger(loginfo):
ltime = time.asctime(time.localtime(time.time())) ltime = time.asctime(time.localtime(time.time()))