1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 06:26:44 +02:00

load chatlog history when opening a chatwindow

This commit is contained in:
Jfreegman
2014-09-22 04:29:28 -04:00
parent 7fd3aa9164
commit dc3b2e04ab
5 changed files with 73 additions and 8 deletions

View File

@ -28,7 +28,7 @@
#define MAX_HISTORY 100000
#define MIN_HISTORY 40
#define MAX_QUEUE 128
#define MAX_LINE_INFO_QUEUE 512
enum {
SYS_MSG,
@ -68,7 +68,7 @@ struct history {
struct line_info *line_end;
uint32_t start_id; /* keeps track of where line_start should be when at bottom of history */
struct line_info *queue[MAX_QUEUE];
struct line_info *queue[MAX_LINE_INFO_QUEUE];
int queue_sz;
};