1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-16 03:03:02 +01:00
Commit Graph

1067 Commits

Author SHA1 Message Date
Jfreegman
2194b9e259
Use time_t instead of uint64_t for timestamps
Also call time() directly from get_unix_time() instead of manually updating the time val.
2016-09-22 18:31:52 -04:00
Jfreegman
c24e1bd2b8
Fix a few A/V race conditions 2016-09-22 18:00:14 -04:00
Jfreegman
38ec96e96a
Thread nodeslist loading
This is necessary because DNS/http lookups block, and can do so for a very long time
2016-09-22 14:09:07 -04:00
Jfreegman
d2b572ede1
Add ipv6 support for bootstrap nodes and refactor parsing code 2016-09-21 21:22:05 -04:00
Jfreegman
703d5419a3
Ignore offline bootstrap nodes, small refactor of Nodes struct 2016-09-21 12:51:57 -04:00
Jfreegman
221d761ff4
Ignore bootstrap nodes that use a domain instead of IP address
Domains cause toxcore to do blocking DNS requests which creates noticable lag
and might (??) leak IP addresses when using a proxy
2016-09-21 00:28:16 -04:00
Jfreegman
151f5f0c51
Add setting to control DHT nodeslist update frequency
Also rename a few things and semi-fix man page format issues
2016-09-20 13:13:12 -04:00
Jfreegman
4f6c603543
Rename DHTnodes to DHTnodes.json 2016-09-20 00:53:53 -04:00
Jfreegman
a009f11c0c
Automatically update DHT nodeslist
List is now automatically fetched from nodes.tox.chat and placed in the
user config directory. The list is updated once every 30 days, and
will attempt to detect problems and re-fetch the list if necessary.

Also fixed a couple file descriptor leaks and cleaned some things up.
2016-09-20 00:00:09 -04:00
Jfreegman
1f8c11a33a
These strlen() calls are unncessary 2016-09-18 11:34:13 -04:00
Jfreegman
5e20e6b279
Switch to using json DHT nodes file
Parsing json manually like this is ugly, but this allows us to use the json formatted nodeslist file
at nodes.tox.chat instead of having to update the list by hand. We could also potentially
use curl to fetch the list and update it automatically.
2016-09-17 21:38:32 -04:00
Jfreegman
1f02bb2be5
Refactor DHT bootstrap code
- Separate node list loading from connecting
- Put code in its own source file
- Rename a few functions
2016-09-17 14:26:23 -04:00
Keegan Drake H.P
379ad9e116 Use ALC_ENUMERATE_ALL_EXT when available 2016-09-14 05:43:10 -05:00
Marin Ivanov
4019395f44 Changed video get format to set format
* Fixes issue #394
* This was obviously meant to set the video format.
2016-07-28 17:58:24 +02:00
Marin Ivanov
41a8401ac5 Merge branch 'master' into fix-chat-infobox-flicker
Fixed cursor position issue
2016-07-27 22:04:41 +02:00
Marin Ivanov
c425aa2f27 Fixed input lag 2016-07-27 18:06:33 +02:00
Marin Ivanov
94e026d114 Remove chat infobox flicker 2016-07-27 02:39:31 +02:00
Marin Ivanov
f89638635a Remove help window flicker 2016-07-27 02:07:31 +02:00
Marvin Ewald
5b1b420ac0 Add further explanation to the beep_on* options
This also renames beep_on* to bell_on*.
2016-07-21 11:35:09 +02:00
Marvin Ewald
d3effa26b5 Add options to enable terminal bell on certain events
Some terminals can mark the terminal window as urgent on bell.
This is useful for window managers that provide a shortcut to jump to an
urgent client.
2016-07-17 19:22:40 +02:00
Jfreegman
2ec180789b
Fix crash on AV error call state during active call 2016-07-11 17:42:57 -04:00
Jfreegman
9f74d3a3a8
Fix memory leak 2016-06-29 21:36:54 -04:00
Jfreegman
9fcbc3bde0
Fix tab-complete bug causing buffer to sometimes clear 2016-06-11 23:49:56 -04:00
Jfreegman
cf16849b37
Dynamically allocate memory for save file instead of using stack 2016-05-03 14:13:16 -04:00
Jfreegman
32442b6286
Disallow ctrl+m keybinding and revert to default settings on invalid bindings
Note: Ctrl+m uses the same control sequence as the enter key on many systems
2016-05-01 14:57:46 -04:00
Jfreegman
70bd39eb74
Fix small bug 2016-04-11 18:50:28 -04:00
Jfreegman
4e0e322e32
Fix cross-client audio issue 2016-04-05 00:49:46 -04:00
Jfreegman
bcda6e476e
Fix bug for real this time 2016-03-12 02:29:59 -05:00
Jfreegman
5b29ce7132
Fix bug preventing friend connection status from changing 2016-03-03 20:49:48 -05:00
Marvin Ewald
d6fdac9739 Fix markup in multiline messages
A '<' or '>' at the beginning of a line will now highlight only this
particular line instead of the whole message.
2016-02-29 01:46:48 +01:00
Marvin Ewald
c6a2bb8a90 Add settings option to set paste-mode key and update docs 2016-02-28 21:53:33 +01:00
Marvin Ewald
04576fea7e Add paste-mode to allow multiline text pasting
Ctrl-T toggles paste mode.
Useful when pasting multiline text because it avoids triggering an
enter keypress after linebreaks.
Instead, every \r is translated to \n which is again translated to a
pilcrow (see previous commit).
The pasted text can then be sent as a whole instead of splitting up in
multiple messages.
2016-02-28 21:40:41 +01:00
Marvin Ewald
e6f839f9ac Enable multiline input
Adds a nonl() call to avoid translation from \r to \n when pressing
enter.
C-J -> \n
Enter -> \r
To allow multiline input, \n chars (e.g. when pressing C-J) are replaced
with a pilcrow. After hitting enter, every pilcrow is substituted with
\n again.
2016-02-28 02:35:36 +01:00
Jfreegman
2e609c46f6
Remove file transfer timeoutes, and remove a couple unused functions 2016-02-25 17:58:02 -05:00
Jfreegman
a474e3bf39
Add settings option to disable friend connection change notifications 2016-02-25 17:06:49 -05:00
JFreegman
93835f0455 Merge pull request #379 from FreakyPenguin/password_eval
Add password_eval option to skip password prompt
2016-01-19 18:31:04 -05:00
Antoine Kaufmann
ac6d8ff89c Add password_eval option to skip password prompt
Runs a command and uses its output as the password. This can be used for
getting the password from a password manager such as pass.
2016-01-19 13:45:52 -08:00
quininer
deccaec40e fix milliseconds 2015-12-22 10:43:08 +08:00
quininer
4419be36e8 remove useless var 2015-12-21 20:00:48 +08:00
quininer
b34b51e8c1 use tox_iteration_interval 2015-12-21 18:13:03 +08:00
Wedge Jarrad
675712cea0 Fix #372 - can't start with missing ~/.config
This block was added in fa0e645. I'm unsure what bug or corner case it
was intended to address but it causes Toxic to exit with an error if
the ~/.config directory doesn't exist. Without this block the ~/.config
directory and tox-specific subdirectories will be created when Toxic
starts.
2015-12-17 18:17:34 -08:00
Romero Malaquias
3fe9abd84d Avoiding conditional directives that split up parts os statements 2015-12-08 23:13:39 -03:00
Romero Malaquias
fd6432c727 Avoiding conditional directives that split up parts os statements 2015-12-08 23:10:16 -03:00
Jfreegman
3cb6db3d60
Remove pointless null check 2015-12-05 00:19:11 -05:00
Jfreegman
77238eeadf
Improve file transfer progress bar 2015-12-04 19:41:50 -05:00
Oleksiy Protas
aade65bfe1 Correctly operational from OSX terminals 2015-11-25 10:26:12 +02:00
Jfreegman
b24c5d8cf8
Fix AV bug
Pending call now properly hangs up when you use the /hangup command or close the chat window
2015-11-19 23:49:58 -05:00
Jfreegman
9f0feb7223
Allow custom nospam values 2015-11-12 18:03:45 -05:00
Jfreegman
65c07a57db
Properly close audio devices on quit 2015-11-12 17:14:10 -05:00
Jfreegman
ab99c1ac73
Fix building on FreeBSD (courtesy of thierry-FreeBSD) 2015-11-12 05:04:37 -05:00