summary refs log tree commit diff stats
path: root/src/common/hexchat.h
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-01-31 15:13:18 -0500
committerPatrick Griffis <tingping@tingping.se>2016-01-31 15:31:15 -0500
commit650bddcfd1399c875156cec8be37e331835ce129 (patch)
tree4c614087565cda60f7dea50532e4f041310c0fd0 /src/common/hexchat.h
parent089fe95a426dc59693618a2dd848fa726d7ccac4 (diff)
Improve scrollback file handling
- Properly use filesystem encoding
- Validate utf8 when loading (hopefully fixing crashes)
- Use Gio
- Handle Windows line endings
- Remove dead code
- Fix respecting max length of scrollback files
Diffstat (limited to 'src/common/hexchat.h')
-rw-r--r--src/common/hexchat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/hexchat.h b/src/common/hexchat.h
index 51c9b9aa..ec055939 100644
--- a/src/common/hexchat.h
+++ b/src/common/hexchat.h
@@ -377,7 +377,8 @@ typedef struct session
 	char channelkey[64];			  /* XXX correct max length? */
 	int limit;						  /* channel user limit */
 	int logfd;
-	int scrollfd;							/* scrollback filedes */
+
+	GFile *scrollfile;							/* scrollback file */
 	int scrollwritten;					/* number of lines written */
 
 	char lastnick[NICKLEN];			  /* last nick you /msg'ed */