summary refs log tree commit diff stats
path: root/src/common/text.c
AgeCommit message (Collapse)Author
2017-06-18Fix crash on coloring NULL nicksPatrick Griffis
Fixes #2014
2017-06-10Actually respect away_omit_alerts for custom sounds...Patrick Griffis
Probably should think before merging things.
2017-06-10Disable custom sounds when away_omit_alerts enabledYuGiOhJCJ
Closes #2012
2016-11-11Respect plugin hook changing tab colorPatrick Griffis
Fixup to 241dd69b081
2016-11-11Further tab color improvementsPatrick Griffis
- Combine the three properties into a single one - Finally fully fix the handling with plugins handling events TODO: Look into lastact handling of these, seems wrong
2016-11-11More fixes for tab color handling with pluginsPatrick Griffis
Part 2 of 03767ee0f9826222 So how the colors work should be pretty straight forward: - A message comes in and is handled, this sets the state flags: nick_said, msg_said, new_data. These map to tab colors. - This state is reset under one of these conditions: - It is commited to the UI when actually printed on unfocused tab - Event is interupted by a plugin hook - The tab focus is changed
2016-10-10Don't abort if translated text event failsPatrick Griffis
At least try the untranslated one... Also while at it don't present a ton of dialogs to the user about this failure, they wouldn't even know what to do with that information.
2016-09-11Sanitize network name for scrollback filesPatrick Griffis
This prevents using invalid chars on Windows or creating directories
2016-07-24Kill fe_set_hilight()Patrick Griffis
It just duplicates functionality and this fixes: - alert_taskbar chanopt not being respected - tab color being incorrect when highlight print events are eaten
2016-06-24Forcibly reset iconv converter after every conversion.Arnavion
Despite what g_convert_with_iconv's docs say, it does not reset the converter on a failed conversion (iconv returns -1). Fixes #1758
2016-04-26More minor scrollback loading improvementsPatrick Griffis
2016-02-18Fix strict prototype warningsPatrick Griffis
2016-01-31Improve scrollback file handlingPatrick Griffis
- 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
2016-01-28Sanitize server name for log filesPatrick Griffis
It could contain invalid chars or log to an arbitrary directory
2016-01-28Add support for cap-notifyPatrick Griffis
2015-05-28Fix warningTingPing
2015-04-04Fix some text event descriptionsTingPing
2015-03-02Fix incorrect timestamp in scrollback with server-timebendem
Fixes #1148
2015-02-28Make use of g_path_is_absolute()TingPing
No reason to roll our own.. in multiple places
2015-02-28Clean up some ifdefsTingPing
Thankfully somebody already made a define for this, they just never used it...
2015-02-27Write scrollback as binary on win32TingPing
Proper fix for b66edd3 This issue likely applies elsewhere in HexChat
2015-01-31Save iconv converters for input and output in the server.Arnavion
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.
2015-01-18Server line text-encoding-related fixes.Arnavion
- Handle server lines that contain sequences which are invalid in the server encoding. Previously, these would cause the whole line to be interpreted in ISO-8859-1, but now they're simply replaced with an appropriate replacement character. - Removed prefs.utf8_locale. - Change default server encoding from system locale to UTF-8. - Always populate server->encoding with a non-null value - UTF-8. Fixes #1198
2015-01-14Don't crash if the log file can't be opened.Arnavion
Found in #1269
2014-12-31Fix some unused warningsTingPing
2014-12-28Fix building as c89TingPing
2014-12-28Use glib for all allocationsTingPing
- Removes need to check for malloc failure - Removes need for NULL checks on free - Adds checks for integer overflows - Removes some extra memset calls - Removes chance of mixing libc and glib malloc/free
2014-12-15Fixed some more signed-unsigned-comparison warnings.Arnavion
2014-12-11Fix some leaksTingPing
2014-12-08Fixed leak of filename string.Arnavion
2014-12-08Minor tidying upArnavion
2014-12-08Removed some unnecessary null-checks for calls to g_free and g_strfreevArnavion
2014-09-13Use PlaySoundW to play sounds on Windows.Arnavion
Fixes #1133
2014-07-18Use GNUC format attribute on print functionsCampbell Barton
Closes #1059
2014-05-12Add global option to suppress nick change eventsBerke Viktor
Might as well add a per-channel option, too but for me that seems a bit unnecessary. Closes #971
2014-05-11Fix logging incorrect timestamp with server-timeRiamse
Fixes #972
2014-04-21Use utf-8 variant of strftime to format log file paths.Arnavion
strftime assumes the format string is in locale encoding, which mangles log file paths that are in utf-8. Fixes #767 Fixes #945
2014-04-17Fix #928. Fix memory leak, mea culpa.RichardHitt
2014-04-17Fixes #928 again. In scrollback replay, skip every line that starts 0x0d.RichardHitt
2014-04-06Add account to Join eventTingPing
Also reorganizes some logic. The account will usually be NULL unless extended-join capability enabled. Closes #934
2014-03-29Fix scrollback_load to deal with e.g. the output of /HELPRichardHitt
Fixes #928.
2014-03-24Improve handling scrollback when gui_tab_server==FALSERichardHitt
Fixes #925.
2014-02-12Fix some leaksTingPing
2013-11-28Print{,_attr} and server{,_attr} hooks were incorrectly handled when bothDiogo Sousa
version existed (regular and attrs). Specifically, the priority was not respected, and both versions were run even when EAT_PLUGIN was returned. Fixes #847.
2013-11-02Fix invalid timestamps crashing on WindowsTingPing
2013-10-09Fix messages with server-time not showing as new activityDiogo Sousa
Added a parameter to fe_print_text() to say that the message does not represent new activity. This is used when a log from an old session is loaded. This used to be implicit whenever the timestamp was non-zero, but with server-time this no longer makes sense. Fixes issue #746.
2013-09-15Fix logging networks with invalid names on WindowsTingPing
2013-09-07Implement BLOWFISh, AES, and EXTERNAL SASL mechanismsTingPing
Closes #657
2013-08-07Format Channel URLsTingPing
closes #706
2013-07-12Removed outdated comment.Diogo Sousa