Save iconv converters for input and output in the server.

These are then used with g_convert_with_iconv instead of making it create a new iconv converter every time for the given from-to-encoding pairs.
This commit is contained in:
Arnavion
2015-01-31 00:52:31 -08:00
parent 5dde0d7c6d
commit 1d83610341
7 changed files with 53 additions and 25 deletions

View File

@@ -534,6 +534,9 @@ typedef struct server
time_t away_time; /* when we were marked away */
char *encoding;
GIConv read_converter; /* iconv converter for converting from server encoding to UTF-8. */
GIConv write_converter; /* iconv converter for converting from UTF-8 to server encoding. */
GSList *favlist; /* list of channels & keys to join */
unsigned int motd_skipped:1;