Commit graph

48 commits

Author SHA1 Message Date
Ben Gamari
7dca220486 Refactor timer handling
This allows us to omit the lagometer timer in the event that it is not
enabled, bringing the baseline wake-up rate down to 1Hz from 2Hz, which
could bring considerable power savings on mobile devices.
2016-06-29 15:24:03 -04:00
Patrick Griffis
aab881fda2 Fix strict prototype warnings 2016-02-18 08:57:22 -05:00
Patrick Griffis
5c534ac344 Fix leaks 2016-01-25 23:36:06 -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
2e76a4e477 Removed CP1255-specific handling of server lines.
GLib's API is good enough now.
2015-01-18 02:10:03 -08:00
Arnavion
ee17ec6b4f Removed legacy "IRC" encoding. 2015-01-18 02:10:03 -08:00
TingPing
2a28289314 Don't return 0 in place of NULL 2014-12-31 11:31:17 -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
TingPing
aeb5d15871 More consistently include config.h 2014-12-17 18:21:10 -05:00
Arnavion
ec7a0d6e13 Fixed some more signed-unsigned-comparison warnings. 2014-12-15 10:25:28 -08:00
TingPing
226d54c90d Fix use after free 2014-12-14 19:35:27 -05:00
TingPing
58e871696b Fix typo 2014-12-10 09:00:04 -05: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
b7afcc3632 Don't leak filename_fs on errors. 2014-12-08 21:24:58 -08:00
Arnavion
5152040c17 Always use 64-bit filesize and file offsets in DCC.
Based on LRN's commit for replacing stat with GFileInfo https://github.com/hexchat/hexchat/commit/32008bb

Fixes #382
2014-12-06 14:02:45 -08: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
Alf Gaida
cc6de3f665 some Typos causing lintian moaning: {R,r}eciev.. -> {R,r}eceiv.. 2013-10-05 18:26:55 +02:00
TingPing
e2328e7a91 Merge pull request #687 from Mikah89/clear_dcc_list_rebased
Clear button in dcc download manager
2013-07-27 13:19:29 -07:00
Helder Martins
a8abba84bd Fixed coding style and clearified some comments, following arnavion suggestions 2013-07-17 09:20:54 +01:00
Helder Martins
0c87c49146 Implemented clear functionality for DCC download manager. Created clear button in DCC downloaded manager interface. 2013-07-15 21:34:14 +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
42da8fe3ef server-time supported in all named servermsg: ping, error, notice and
authenticate.

The only thing left to do for server-time are the numeric messages.
2013-06-28 16:04:16 +01:00
Diogo Sousa
6a0240aa18 server-time supported in most named messages. 2013-06-28 16:03:37 +01:00
Berke Viktor
171dbcdedf Remove dead GLib code 2013-05-12 05:58:16 +02:00
RichardHitt
6beef589e3 Make source cleah with cppcheck, except for mpc and sasl 2013-01-09 14:37:57 -08:00
Dan Mashal
b04377825f fix incorrect FSF address 2012-12-23 11:36:54 -08:00
Arnav Singh
d142c74c15 Fix erroneous DCC file names and crash upon aborting 2012-11-05 03:04:08 +01:00
Arnavion
5d9264aff6 Initial commit for utf8 everywhere. 2012-11-03 19:04:02 -07:00
Berke Viktor
a51a69134b Nah, even more rebranding 2012-10-30 11:35:39 +01:00
Berke Viktor
1a75c8e1be A lot more rebranding 2012-10-24 21:33:02 +02:00
Berke Viktor
464b005c97 Fix compilation on Unix with GLib 2.24 or older 2012-10-24 18:34:07 +02:00
Berke Viktor
aa917d568f System includes before own includes 2012-10-24 13:13:25 +02:00
Arnav Singh
8902f52eb9 Removed DCC::destfile_fs since it was now the same as DCC::destfile. Fixed usage of g_stat to use GStatBuf instead of OS-native struct stat. 2012-10-22 19:08:36 -07:00
Arnav Singh
8c7ec909b8 Replaced use of OS file I/O functions which expect filenames in system codepage with GLib's, since GLib's functions work with UTF-8 and GLib handles converting the filename to system codepage for us. 2012-10-22 19:07:28 -07:00
Arnav Singh
1cc599a0f9 Build DCC file's path using platform's directory separator instead of always using forward slash. 2012-10-22 19:06:18 -07:00
Berke Viktor
51ae33cbe8 Variable cleanup for the rest 2012-10-22 15:55:43 +02:00
Berke Viktor
545b7dc6ff Variable cleanup for irc_* 2012-10-22 14:50:36 +02:00
Berke Viktor
bf27d43052 Variable cleanup for gui_* 2012-10-22 13:49:28 +02:00
Berke Viktor
b563b93414 Variable cleanup for dcc_* 2012-10-22 12:10:55 +02:00
Berke Viktor
e7f723539d Some aid for compiler warnings 2012-07-21 14:26:19 +02:00
Berke Viktor
35821f3875 Fix string handling for Turkish locale 2012-06-16 13:01:47 +02:00
Berke Viktor
132ef6cb50 initial patches for linux compatibility 2011-12-11 17:34:02 +01:00
berkeviktor@aol.com
d03d6e606b add wdk changes to named branch 2011-02-28 18:59:32 +01:00
berkeviktor@aol.com
4a6ceffb98 add xchat r1489 2011-02-24 04:14:30 +01:00