Sun Oct 16 20:55:17 BST 2022
This commit is contained in:
parent
0c511b3e85
commit
96deb8692f
@ -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
|
||||
|
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user