1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-09-14 21:16:52 +02:00
Commit Graph

161 Commits

Author SHA1 Message Date
jfreegman
5dabaac804 Remove some unnecessary code 2022-03-18 12:23:57 -04:00
jfreegman
2c51afd9ef Sync with master branch 2022-03-18 12:23:55 -04:00
jfreegman
5499bb6645 Fix/update group logging implementation 2022-03-18 12:23:53 -04:00
jfreegman
812210d63f Implement new groupchats 2022-03-18 12:23:53 -04:00
iphydf
701c0e1e94 cleanup: Reduce the amount of "extern" in .c files.
There is no check at all that the types of externs actually match the
type of the definition. This just accidentally was not a problem, but now
the compiler helps a bit in keeping it that way.
2021-12-11 22:35:51 +00:00
jfreegman
66e4c590dc Fix some lazy/incorrect code in cmd_add()
This fixes a rare but possible scenario where a name@domain lookup that's
longer than a tox id won't work. It also fixes custom messages for domain
lookups
2021-12-07 13:27:38 -05:00
jfreegman
e2c8497da9 Cleanup code around tox ID/pk conversion functions 2021-12-06 10:46:19 -05:00
jfreegman
afbd185222 /add command no longer requires quotes around the message 2021-12-06 10:06:49 -05:00
jfreegman
58d0bd0663 Allow empty notes 2021-11-26 09:03:43 -05:00
jfreegman
4514ecd839 Refactor game window sizing
- Add large square and rectangle window types
- Remove forced small windows
- Fit game of life to largest possible window type
- Hide cursor in game of life when game is running
2021-06-03 01:19:49 -04:00
jfreegman
7abf6388f8 Add ability to compile without game support 2021-05-24 14:30:28 -04:00
jfreegman
7aeb1a0aac Add networking to game engine / add multiplayer chess 2021-05-24 14:30:27 -04:00
jfreegman
a623976a0e Add game module (WIP) 2021-05-24 14:30:26 -04:00
jfreegman
2fcbc4fa1c Remove lots of duplicate code related to printing timestamps 2020-11-30 17:55:57 -05:00
jfreegman
9d65997871 Add notification counters to bottom tab
A counter now increments in the bottom bar for unfocused windows showing how
many unread messages are pending. Tabs with no pending messages show [*]
instead of their index (showing the index is useless and somewhat confusing)
2020-11-21 11:25:41 -05:00
jfreegman
312b38d253 A few small fixes
- Fix race condition in draw_peer()
- Handle realloc_peer_list() error
- Remove dead code in cmd_conference()
- Reduce scope of a few variable variables
- Fix possible buffer truncation in api.c
2020-11-19 14:23:32 -05:00
jfreegman
7e1e410307 Refactor logging
- Conference logging now behaves the same as 1-on-1 chats: Instead
  of creating a new log file every time we restat the client
  we use the unique conference ID to keep track of path names.
  This also allows us to load history for saved groups on client startup

- Added a log init function / general code refactor.

- Fixed a bug that caused log files to be created even when logging
  is disabled.
2020-11-17 16:05:20 -05:00
zugz (tox)
d75d6e8b60 sort includes 2020-11-14 00:00:05 +00:00
zugz
ddcf224db2 Implement groupAV 2020-11-14 00:00:01 +00:00
jfreegman
68e1ba312d Use compound literals to zero out structs instead of memset
This is cleaner and much less prone to bugs
2020-11-10 21:25:27 -05:00
jfreegman
71d7d355a6 Use enum to identify window types instead of bool variables 2020-11-09 17:01:22 -05:00
jfreegman
4188b392cc Rename: groupchats -> conferences
This is in line with the toxcore API naming scheme and is in preparation
for the merge with the new groupchat implementation
2020-11-08 10:08:24 -05:00
jfreegman
7560bc9547 modularize string arrays for line completion
Instead of using various different forms of string arrays and having to handle them
differently for string completion, we now always use char pointer arrays. This allows
us to remove some large stack allocations, remove a bunch of confusing defines that
keep track of global array sizes, and generally unclutters the code so it's easier
to read.
2020-11-01 11:29:51 -05:00
jfreegman
2b43340c90 Convert all variable length arrays to heap allocations
VLA's are inherently unsafe so the safest option is to not use them
2020-11-01 11:29:48 -05:00
jfreegman
3cdcfbf4e5 Reduce size of some large stack memory allocations 2020-10-25 13:48:14 -04: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
98cb7f58c0 Fix unused parameter and unused result warnings 2020-03-15 14:57:00 -04:00
jfreegman
127f9462e0 make friend add fail if friend is in the block list 2019-11-16 01:55:47 -05:00
JFreegman
bb2257973e Load conference titles on startup for saved conferences (#43) 2019-06-30 14:51:13 -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
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
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
jfreegman
a37bf300f9 Update astylerc to match toxcore & reformat all source files 2018-07-18 11:33:16 -04:00
François-Xavier Carton
46f646afcf Add an option to disable qr codes 2018-06-16 05:07:16 +02:00
avoidr
a9f7f85617 /status: give feedback to user on status change 2017-08-27 12:27:04 +02:00
jfreegman
1d71e2eb18 Port to toktok-c-toxcore branch 2016-12-18 00:01:51 -05:00
Ansa89
958df9f2e8 Add possibility to save QR code in PNG file format 2016-10-05 20:57:50 +02:00
Jfreegman
f056f13329 Astyle everything and add an astyle options script to repo 2016-09-24 21:07:04 -04: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
9f0feb7223 Allow custom nospam values 2015-11-12 18:03:45 -05:00
Jfreegman
05f5f16af3 Fix various video bugs; it should be working now! 2015-11-12 05:01:28 -05:00
Jfreegman
39c4b7ecdd Add ability to print your Tox ID's QR code to a file 2015-11-08 22:51:46 -05:00
Jfreegman
4ab99c73a0 Merge with master 2015-11-02 15:22:52 -05:00
Jfreegman
8584feab80 Replace DNS-based username lookups with HTTPS & drop utox.org support 2015-10-28 17:14:17 -04:00
Jfreegman
7af9327b37 Add note about logs not being encrypted 2015-10-22 19:55:48 -04:00
Jfreegman
6b97df2615 Add command to change the Tox ID nospam value 2015-10-22 19:44:05 -04:00