1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 18:06:46 +02:00
Commit Graph

143 Commits

Author SHA1 Message Date
0bd5b4ddee Repair operating system checks (#474) 2017-11-16 16:59:51 -05:00
ed1e617380 Make Toxic compile at NetBSD, STAGE 2 2017-11-15 05:50:00 +02:00
8f94b0a218 Shut down the warning at *BSD 2017-11-11 21:17:34 +02:00
85a0becbf9 Make Toxic compile at OpenBSD 2017-11-11 21:04:45 +02:00
80c0500299 Fix formatting bug caused by strings containing \r 2017-08-28 18:26:52 -04:00
1d71e2eb18 Port to toktok-c-toxcore branch 2016-12-18 00:01:51 -05:00
e17fa89d8f Update misc_tools.c (#408)
* Update misc_tools.c

Fix build on FreeBSD with clang.

Without this patch, compilation fails with these messages:

  CC    misc_tools.o
/usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:24: error: variable has incomplete type 'struct sockaddr_in'
    struct sockaddr_in s_addr;
                       ^
/usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:12: note: forward declaration of 'struct sockaddr_in'
    struct sockaddr_in s_addr;
           ^
/usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:480:22: error: use of undeclared identifier 'AF_INET'
    return inet_pton(AF_INET, address, &(s_addr.sin_addr)) != 0;
                     ^
2 errors generated.

* Fix build on FreeBSD with clang

Without this patch, compilation fails with these messages:

CC misc_tools.o
/usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:24: error: variable has incomplete type 'struct sockaddr_in'
struct sockaddr_in s_addr;
^
/usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:12: note: forward declaration of 'struct sockaddr_in'
struct sockaddr_in s_addr;
^
/usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:480:22: error: use of undeclared identifier 'AF_INET'
return inet_pton(AF_INET, address, &(s_addr.sin_addr)) != 0;
^
2 errors generated.
2016-09-25 22:32:17 -04:00
f056f13329 Astyle everything and add an astyle options script to repo 2016-09-24 21:07:04 -04:00
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
d2b572ede1 Add ipv6 support for bootstrap nodes and refactor parsing code 2016-09-21 21:22:05 -04:00
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
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
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
05f5f16af3 Fix various video bugs; it should be working now! 2015-11-12 05:01:28 -05:00
39c4b7ecdd Add ability to print your Tox ID's QR code to a file 2015-11-08 22:51:46 -05:00
b4464eda4d Fix more threading issues 2015-08-27 21:29:34 -04:00
28dd43608d Fix a few notify/threading bugs and fix DHTnodes loading bug 2015-08-27 15:13:13 -04:00
11701d22a1 Lots of bug fixes and general code cleanup 2015-08-27 03:38:08 -04:00
327259c4c8 simplify timeout function 2015-08-18 01:46:22 -04:00
035420e5c7 Revert commit 312d0c3 (localization/gettext)
There were serious problems with branch merging that need to be resolved first
2015-07-04 01:19:16 -04:00
85d3c18ba6 Add localization system (gettext) 2015-05-28 15:50:55 +02:00
522aabd4e4 Refactor and clean up file transfers
(No longer rely on undefined core filenumber property for indexing)
2015-03-29 18:33:51 -04:00
2d3c5c9450 Mostly finished with new API port
- File transfers currently don't support pausing/resuming
- Avatars are not yet done
2015-03-28 02:56:54 -04:00
ae87b2eb2d begin port to new API 2015-03-25 22:56:45 -04:00
53e4b2c971 Add support for custom timestamps in chat and logs.
Internal representations of the time_format setting are replaced by timestamp format strings.
time_format is only used in the setup.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2015-02-23 00:46:33 -05:00
141b36af04 handle errors for name functions 2014-11-15 22:39:24 -05:00
4e177d60b0 group title fixes and api update 2014-11-15 15:55:45 -05:00
76c21c8b34 implement group titles 2014-11-14 22:15:59 -05:00
e4a28d1839 make groupchat announcements behave properly 2014-10-09 01:39:22 -04:00
9f0daca5eb filter escape sequences from all inbound nicks and status messages 2014-10-07 16:18:06 -04:00
1f2bd44dce don't allow newlines and tabs in nicks 2014-10-07 00:43:03 -04:00
6492bd12f9 escape newlines in contact names/status messages 2014-10-06 16:23:43 -04:00
5c66f5c161 fixes 2014-10-03 19:29:12 -04:00
23cf9686cb safer string handling 2014-10-03 17:53:50 -04:00
97a8ecd115 small fix and bump version to 0.5.2 2014-09-29 13:56:17 -04:00
544c402f78 implement avatars (setting only) and generalize path tab-complete 2014-09-26 03:10:44 -04:00
cee9e624b8 more UI changes 2014-09-25 15:23:50 -04:00
2e65ee3609 a few UI changes 2014-09-25 04:31:45 -04:00
a432d733d7 use 64-bit off_t for file sizes 2014-09-24 14:23:08 -04:00
893e88294b more succinct way to get file sizes 2014-09-24 00:06:02 -04:00
133c0e8d63 rename reserved identifiers per C standard 2014-09-22 21:24:45 -04:00
51e274ea38 implement data file encryption 2014-09-14 17:46:28 -04:00
511907fbc5 better way to check if files exist 2014-08-27 22:51:46 -04:00
1d6ccf56a8 name conflict with core function might cause linking error 2014-08-15 12:22:39 -04:00
0f4cffbacc a few dns fixes 2014-08-11 01:59:01 -04:00
d9a861331f Use DNS server list instead of hard coding domains/keys 2014-08-10 21:40:19 -04:00
bb85f31bb2 convert bytes for file transfer message, general fixes 2014-08-07 19:31:36 -04:00
5da789cc37 save last online data in blocked list 2014-07-31 14:53:02 -04:00
49538a986c improve file transfer progress line 2014-07-27 18:00:33 -04:00
8d8df585ad sort directories and skip special symbols for path autocomplete 2014-07-23 18:34:32 -04:00