egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Logging chat

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Pauschi
Voice


Joined: 03 Sep 2019
Posts: 11

PostPosted: Sun Nov 08, 2020 1:15 pm    Post subject: Logging chat Reply with quote

Hey guys

for now the eggdrop logs the chat from

old
to
new

so the newest is always on bottom.

1
2
3
4
5
6
7
8
9

is there any way, that the eggdrop is saving the chat in reverse mode?

new
old

9
8
7
6
5
4
3
2
1

?

Cheers
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2854

PostPosted: Sun Nov 08, 2020 6:54 pm    Post subject: Reply with quote

Hello Pauschi,
The short answer to that would be no.

Log posts are appended to the end of the file, as that is the most efficient way to add new data to a file. Prepending the new log post would either require that the whole content of the file be shifted before adding the new post, or in the extreme case; retaining each log post in memory and rewriting the whole log each time a new post is added.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber