Arnavion
16ba39d9fa
Forcibly reset iconv converter after every conversion.
...
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-06-24 12:09:35 -07:00
Patrick Griffis
5b097f560d
More minor scrollback loading improvements
2016-04-26 12:06:28 -04:00
Patrick Griffis
aab881fda2
Fix strict prototype warnings
2016-02-18 08:57:22 -05:00
Patrick Griffis
650bddcfd1
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
2016-01-31 15:31:15 -05:00
Patrick Griffis
35f97b65c1
Sanitize server name for log files
...
It could contain invalid chars or log to an arbitrary directory
2016-01-28 16:22:04 -05:00
Patrick Griffis
7a85c9160d
Add support for cap-notify
2016-01-28 16:02:04 -05:00
TingPing
94ef0fd294
Fix warning
2015-05-28 14:13:34 -04:00
TingPing
f8c7ea3672
Fix some text event descriptions
2015-04-04 04:29:39 -04:00
bendem
36a8ba126c
Fix incorrect timestamp in scrollback with server-time
...
Fixes #1148
2015-03-02 19:58:27 +01:00
TingPing
749e5b20da
Make use of g_path_is_absolute()
...
No reason to roll our own.. in multiple places
2015-02-28 07:24:49 -05:00
TingPing
a5584c6b57
Clean up some ifdefs
...
Thankfully somebody already made a define for this, they
just never used it...
2015-02-28 06:43:33 -05:00
TingPing
ec12871e60
Write scrollback as binary on win32
...
Proper fix for b66edd3
This issue likely applies elsewhere in HexChat
2015-02-27 16:20:09 -05:00
Arnavion
1d83610341
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.
2015-01-31 00:52:31 -08:00
Arnavion
5749c53484
Server line text-encoding-related fixes.
...
- 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-18 02:10:04 -08:00
Arnavion
1d316710ed
Don't crash if the log file can't be opened.
...
Found in #1269
2015-01-14 16:29:03 -08:00
TingPing
1fa4a000e7
Fix some unused warnings
2014-12-31 10:24:51 -05:00
TingPing
95febd978c
Fix building as c89
2014-12-28 06:47:23 -05:00
TingPing
83032b1aa3
Use glib for all allocations
...
- 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-28 06:44:44 -05:00
Arnavion
ec7a0d6e13
Fixed some more signed-unsigned-comparison warnings.
2014-12-15 10:25:28 -08:00
TingPing
d6e3f740bc
Fix some leaks
2014-12-11 12:13:57 -05:00
Arnavion
2da5308fd2
Fixed leak of filename string.
2014-12-08 21:25:00 -08:00
Arnavion
c1831cb19d
Minor tidying up
2014-12-08 21:24:59 -08:00
Arnavion
65da34f19e
Removed some unnecessary null-checks for calls to g_free and g_strfreev
2014-12-08 21:24:59 -08:00
Arnavion
e209e55e59
Use PlaySoundW to play sounds on Windows.
...
Fixes #1133
2014-09-13 00:23:44 -07:00
Campbell Barton
93caf4c7b4
Use GNUC format attribute on print functions
...
Closes #1059
2014-07-18 07:09:07 -04:00
Berke Viktor
0dccf692d4
Add global option to suppress nick change events
...
Might as well add a per-channel option, too but for me that seems a bit unnecessary.
Closes #971
2014-05-12 05:01:24 -04:00
Riamse
6ef41f7d4f
Fix logging incorrect timestamp with server-time
...
Fixes #972
2014-05-11 05:02:19 -04:00
Arnavion
dc27640265
Use utf-8 variant of strftime to format log file paths.
...
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-21 01:39:28 -07:00
RichardHitt
ccf49aa48d
Fix #928 . Fix memory leak, mea culpa.
2014-04-17 15:07:50 -07:00
RichardHitt
b66edd372e
Fixes #928 again. In scrollback replay, skip every line that starts 0x0d.
2014-04-17 09:53:09 -07:00
TingPing
b41bd594b0
Add account to Join event
...
Also reorganizes some logic. The account will usually be NULL unless
extended-join capability enabled.
Closes #934
2014-04-06 15:33:22 -04:00
RichardHitt
4ca9672a92
Fix scrollback_load to deal with e.g. the output of /HELP
...
Fixes #928 .
2014-03-29 14:31:19 -07:00
RichardHitt
1a3bfdce75
Improve handling scrollback when gui_tab_server==FALSE
...
Fixes #925 .
2014-03-24 21:22:04 -04:00
TingPing
b17c0276de
Fix some leaks
2014-02-12 10:31:11 -05:00
Diogo Sousa
40f26429f8
Print{,_attr} and server{,_attr} hooks were incorrectly handled when both
...
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-28 02:11:33 +00:00
TingPing
af248ce2c1
Fix invalid timestamps crashing on Windows
2013-11-02 21:07:03 -04:00
Diogo Sousa
5ad9552365
Fix messages with server-time not showing as new activity
...
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-10-09 21:34:02 -04:00
TingPing
f13413c26a
Fix logging networks with invalid names on Windows
2013-09-15 07:40:47 -04:00
TingPing
a903f16c68
Implement BLOWFISh, AES, and EXTERNAL SASL mechanisms
...
Closes #657
2013-09-07 18:59:28 -04:00
TingPing
13bfd060b6
Format Channel URLs
...
closes #706
2013-08-07 06:14:30 -04:00
Diogo Sousa
9978ebd853
Removed outdated comment.
2013-07-12 22:52:12 +01:00
Diogo Sousa
e0fb3d537d
Added hexchat_emit_print_attrs() to plugin interface.
2013-07-12 01:33:35 +01:00
Diogo Sousa
5e240eb259
Indentation fixes and code cleanup.
2013-07-10 00:42:34 +01:00
Diogo Sousa
7101b7b864
Now hexchat_hook_server_attrs() and hexchat_hook_print_attrs() is called
...
when it should. This should close #661 .
2013-07-09 23:11:28 +01:00
Diogo Sousa
ce6fef3d0a
A few messages missing regarding server-time.
2013-06-28 16:07:42 +01:00
Diogo Sousa
d1725e3f44
server-time for all numerical messages.
2013-06-28 16:04:32 +01:00
Diogo Sousa
94186f7888
First step towards message tags extension support
...
(see http://ircv3.atheme.org/specification/message-tags-3.2 ).
In particular this commit implements a (very) dummy implementation
sketch of the server-time extension
(see http://ircv3.atheme.org/specification/message-tags-3.2 and #499 ).
2013-06-28 16:03:12 +01:00
TingPing
8be56d7003
Don't open libcanberra connection for every event
...
Closes #645
2013-06-12 10:41:52 -04:00
TingPing
cf505b850b
Add chanopt for stripping colors
2013-06-06 17:47:01 -04:00
Berke Viktor
a3ba8d575e
Store just the filename if the sound file comes from the default sound dir
...
And get rid of some hardcoding while we're at it
2013-04-28 04:12:00 +02:00