jfreegman
4d96d6a753
Fix regression related to https lookups
...
Reducing the buffer size of HTTPS responses broke DHT nodelist fetching. This change
puts the old buffer size back and converts all stack allocations of the read buffer
to heap allocations.
2020-10-27 12:34:12 -04:00
jfreegman
3cdcfbf4e5
Reduce size of some large stack memory allocations
2020-10-25 13:48:14 -04:00
jfreegman
4c302da503
Fix a bunch of Wformat-truncation warnings due to snprintf() misuse
2020-10-24 14:44:41 -04:00
jfreegman
e428879beb
Fix clashing key bindings
...
Scrolling the groupchat peer list now uses ctrl+up and down
2020-10-13 19:52:43 -04:00
jfreegman
3015138a5a
Manually attempt to decode input char sequences
...
This is currently a fallback method for when the terminal doesn't
detect ctrl arrow sequences, but it is generalized for future additions
2020-10-13 16:12:55 -04:00
jfreegman
9c06ad608b
Add ability to skip words in input field with ctrl-left/right arrow
2020-10-10 11:21:15 -04:00
Johannes Heimansberg
015dbd9a96
fix: Fix non-working bell notifications
...
The problem with the bell notifications only happens when Toxic is
compiled with X11 support, but does not run under X. This commit changes
toxic's behavior such that it behaves identically when not running under an
X session, no matter if it has been compiled with X11 support or not.
2020-08-24 16:36:52 +02:00
jfreegman
a7466c3142
Add option to disable LAN
2020-08-10 21:56:45 -04:00
jfreegman
f012007cc4
A couple small fixes
2020-05-19 21:44:35 -04:00
jfreegman
dcf3baf60f
Make sure logger file is closed after tox_kill
2020-05-18 13:58:55 -04:00
JFreegman
4bda799a4b
Add the ability to log to file ( #84 )
2020-05-16 23:12:54 -04:00
jfreegman
4bfb344caa
Add option for toxcore logging in stderr
2020-05-04 16:15:28 -04:00
iphydf
68db926f9f
Check that files are formatted correctly.
...
Fail the CI build if they are not.
2020-04-23 01:16:57 +00:00
iphydf
b270c1e8b7
Remove extra semicolon in lock/unlock macros.
...
lock/unlock are always expanded in a context followed by a semicolon.
2020-04-23 01:12:34 +00:00
jfreegman
e7142e49fd
Terminate notify before windows
...
This fixes a use after free bug
2020-04-22 20:54:53 -04:00
zugz (tox)
610906d07f
fix segfault on starting video
2020-04-17 00:00:00 +00:00
iphydf
6f72a191ba
Revert "Add feature flags and missing #includes."
...
This reverts commit dd5fa236ae
.
Also, set `-std=gnu99` in Bazel build.
2020-04-17 19:37:22 +00:00
iphydf
dd5fa236ae
Add feature flags and missing #includes.
...
These are needed to compile on some strict Linuxes.
2020-04-15 21:34:30 +00:00
jfreegman
ddc8c53abf
Fix unused variable warnings and change all (void)s to UNUSED macro
2020-03-30 16:02:27 -04:00
iphydf
46513017e3
Half-hearted attempt at making toxic work on osx.
...
Video has no chance without X11 for now.
2020-03-30 18:14:43 +00:00
jfreegman
98cb7f58c0
Fix unused parameter and unused result warnings
2020-03-15 14:57:00 -04:00
iphydf
45ff6d8bac
Migrate to Camel_Case enum types.
...
UPPER_CASE enum types are deprecated and will be removed in 0.3.0.
2020-03-07 18:11:41 +00:00
jfreegman
437dd8baeb
Some misc fixes
2020-02-29 14:14:56 -05:00
jfreegman
b080236ee5
Fix typo
2020-02-10 17:16:56 -05:00
jfreegman
116bff8cef
format fixes
2019-12-07 23:17:02 -05:00
Rodrigo Martins
ddeca171a0
Add input line text to history on UP and DOWN
2019-12-07 18:29:33 -03:00
jfreegman
127f9462e0
make friend add fail if friend is in the block list
2019-11-16 01:55:47 -05:00
jfreegman
4b5a9abbd4
Fix A/V bug preventing the caller from being properly informed of call termination
2019-07-12 11:51:08 -04:00
JFreegman
bb2257973e
Load conference titles on startup for saved conferences ( #43 )
2019-06-30 14:51:13 -04:00
jfreegman
12b9cd2386
Fix header issues
2019-03-27 01:38:15 -04:00
jfreegman
2cbe8fa880
Use correct integer types to fix groupchat peer scrolling bug
2019-03-26 23:05:24 -04:00
jfreegman
05eda76643
Partially fix autocomplete behaviour for input with spaces
2019-02-17 17:25:34 -05:00
Rob Levitsky
f7b73af9a7
Add config option for the notification timeout duration
2018-11-10 08:54:59 -05:00
jfreegman
73aaa44d12
Add config option to set data file auto-save frequency
2018-10-30 18:22:30 -04:00
jfreegman
9e3d4f3889
Check if pointer is null before accessing
2018-10-28 07:09:37 -04:00
jfreegman
b7d67c1d86
re-init AV for unblocked contacts
2018-10-20 02:56:37 -04:00
jfreegman
c4a11f8dc7
Refactor ToxWindows
...
ToxWindow constructor functions now return pointers instead of structs
ToxWindow windows array now holds pointers instead of structs
Refactor some logic in windows.c pertaining to keeping track of active windows
Use uint8_t for window array indexing
2018-10-19 17:43:06 -04:00
jfreegman
d18cc8cbc2
Fix two memory leaks and properly clean up friendlist window
2018-10-19 17:43:03 -04:00
jfreegman
ce6d4861fb
Fix bug where autocomplete added a forward slash to files with no extension
...
Also slightly refactored the line complete functions
2018-10-17 18:00:09 -04:00
jfreegman
8f0e6026f0
Add enum for file_type() and a little cleanup
2018-10-17 18:00:08 -04:00
jfreegman
258736995d
Remove ability to set note with status command
2018-10-17 18:00:08 -04:00
jfreegman
56e03a3f8b
No longer require quotes to enclose paths
2018-10-17 18:00:08 -04:00
jfreegman
b6c746b5f5
No longer require quotes for commands that take strings as arguments
2018-10-17 18:00:07 -04:00
jfreegman
0fea930c24
Convert deprecated uppercase enums to camelcase
2018-10-10 13:34:17 -04:00
jfreegman
94d22a8853
Allow empty status messages
2018-10-09 18:21:05 -04:00
jfreegman
63cc23401a
Improve readability of defines
2018-10-08 13:39:04 -04:00
Leonid Bobrov
f90a774470
Make Toxic easier to port
2018-10-03 22:00:43 +00:00
jfreegman
e7c5fbc873
Cleanup xtra.c
...
Privatise some functions that don't need to be public
Fix struct names starting with _ char
Remove unnecessary memset of Xtra struct in init_xtra()
2018-09-27 03:41:58 -04:00
iphydf
d62902ffb3
Use (void) in prototypes instead of ().
...
Also, removed `__inline` from an extern function (why was it there?).
Also, moved one extern declaration to a header file. There are lots of
these that need to be moved, but one thing at a time.
2018-09-13 23:47:47 +00:00
iphydf
bebff3be0e
Use (void) for empty parameter list in C.
2018-09-08 17:23:07 +00:00
iphydf
20b5e46850
Rename callback implementations to be of the form on_$event
.
...
So it's easy to map from implementation to the event without looking at
the `tox_callback_*` calls.
2018-07-18 17:06:28 +00:00
iphydf
f2b796940e
Add missing braces to if/for/while blocks.
...
Astyle doesn't quite catch all of them.
2018-07-18 15:56:21 +00:00
jfreegman
a37bf300f9
Update astylerc to match toxcore & reformat all source files
2018-07-18 11:33:16 -04:00
iphydf
3cd2bc7e3c
Don't compile A/V code if AUDIO/VIDEO are not #defined.
2018-07-06 15:46:12 +00:00
iphydf
685837357b
Add bazel build file for toxic.
2018-07-06 14:41:16 +00:00
François-Xavier Carton
46f646afcf
Add an option to disable qr codes
2018-06-16 05:07:16 +02:00
jfreegman
68ce17a57f
Temp fix for nick change spam on group join
2018-04-19 22:23:49 -04:00
jfreegman
a69fad15c1
Use default timestamp format if provided one is invalid
2018-04-10 17:47:21 -04:00
jfreegman
815c29ee31
Significantly reduce time before trying to re-send a message with no read receipt
...
(also some formatting cleanup)
2018-03-03 23:54:12 -05:00
jfreegman
a223329815
Fix persistent groupchat loading
2018-02-27 18:46:56 -05:00
jfreegman
221edb0012
add a .travis file and some build fixes
2018-02-26 02:34:38 -05:00
jfreegman
2710ab6034
Re-implement group nick change notifications
2018-02-25 03:43:19 -05:00
jfreegman
bc3ffac0ba
re-add group peer list sorting
2018-02-25 01:21:22 -05:00
jfreegman
29f55c5277
Update API
...
-Removed usage of deprecated API functions
-Integrated conference changes with a few regressions
2018-02-25 00:00:06 -05:00
jfreegman
a290f0f7f8
Update toxav API calls
2018-02-24 15:38:07 -05:00
jfreegman
5cd196a769
Fix autocomplete bug
...
Formatting was messed up due to not accounting for null byte in directory list
2018-02-20 20:54:26 -05:00
iphydf
51f1daeec8
Treat Tox_Options as opaque struct: no deref, no alloc.
...
We allocate it inside toxcore and dereference it inside as well. This
allows us to change the layout of that struct and add new members.
2018-01-20 19:51:13 +00:00
iphydf
b9f9546e2b
Fix typedef enums and potential uninitialised value.
2018-01-20 18:30:35 +00:00
jfreegman
846bc4613e
Fix comment
2017-11-20 07:07:24 -05:00
jfreegman
fe6a7074ea
Dynamically allocate audio calls structure
...
This fixes a bug that caused a segfault when attempting to call a friend with a
friend number above the MAX_CALLS limit
2017-11-20 07:02:56 -05:00
Mateusz Poszwa
0bd5b4ddee
Repair operating system checks ( #474 )
2017-11-16 16:59:51 -05:00
Mateusz Poszwa
351a50c214
Do not assume what is not Linux or a BSD descendant is OSX
2017-11-15 21:02:10 +01:00
aSourceFish
b905a1a3c5
One more bit of standard...
2017-11-15 05:56:13 +02:00
aSourceFish
c4386b195f
A bit of standard...
2017-11-15 05:54:46 +02:00
aSourceFish
ed1e617380
Make Toxic compile at NetBSD, STAGE 2
2017-11-15 05:50:00 +02:00
aSourceFish
1382adb1f6
Make Toxic compile at NetBSD, STAGE 1
2017-11-15 05:46:47 +02:00
aSourceFish
8f94b0a218
Shut down the warning at *BSD
2017-11-11 21:17:34 +02:00
aSourceFish
85a0becbf9
Make Toxic compile at OpenBSD
2017-11-11 21:04:45 +02:00
aSourceFish
fec36ad9e6
Make Toxic compile at OpenBSD
2017-11-11 21:03:28 +02:00
Enni Rosario
e1bfa30769
Refresh device list on /lsdev.
2017-10-31 18:08:06 +02:00
Enni Rosario
ebcbc7497b
Indicate selected device when printing.
2017-10-31 17:45:39 +02:00
zugz
8508451ba6
avoid unnecessary redrawing
2017-10-29 16:50:42 +01:00
Michael Kaiser
febc725763
Fix tmux detached detection
...
The old code failed if the session had a custom name instead of the
default numeric id. To be safe in both cases, look for the session_id in
the tmux list-sessions output.
2017-09-05 12:49:48 +02:00
jfreegman
f2c116feb3
Fix potential string truncations with snprintf
2017-09-01 17:36:17 -04:00
jfreegman
52dd60dc86
Fix potential int truncation and double-check lengths before copy
2017-08-28 19:37:19 -04:00
jfreegman
80c0500299
Fix formatting bug caused by strings containing \r
2017-08-28 18:26:52 -04:00
avoidr
a9f7f85617
/status: give feedback to user on status change
2017-08-27 12:27:04 +02:00
Daniel Hoffman
2ede39369a
added /bitrate
2017-07-07 23:47:59 +00:00
jfreegman
922c184195
Only include python libs when necessary
2017-06-06 19:03:40 -04:00
jfreegman
56a9571509
Make sure message id fits inside a signed int
2017-06-02 01:15:44 -04:00
jfreegman
0136f22076
Fix UI bugs & format
...
This fixes a bug where lines would sometimes be incorrectly marked as unread, as well as
a bug where inbound messages would sometimes be coloured incorrectly
2017-06-01 16:46:12 -04:00
jfreegman
6d3fbfee59
Merge branch 'TsarFox-master'
2017-05-24 14:57:32 -04:00
jakob
369f26932e
Fix error messages being printed when autorun_path is unset.
2017-05-23 19:12:53 -04:00
jakob
22ea522baf
Add "/run" to autocompleter and fix example Python script.
2017-05-22 20:47:56 -04:00
jakob
76d1eafdc0
Change visibility on Python commands list
2017-05-20 08:18:28 -04:00
jakob
37912f2d88
Update INSTALL.md
2017-05-19 21:09:29 -04:00
Daniel Hoffman
acee4615f8
double signal handler prevents accidental closes
2017-05-19 14:38:39 -05:00
jakob
5ed26eda9b
Added constants to the Python interface for calls to execute.
2017-05-19 15:35:31 -04:00
jakob
6d2b90ac9f
Error reporting on failure of invoke_autoruns and solved issue with call to Py_FinalizeEx
2017-05-18 21:37:28 -04:00
jakob
02ea0fac44
get_status returns a string rather than an integer.
2017-05-17 08:39:29 -04:00