1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-08 04:06:44 +02:00
Commit Graph

49 Commits

Author SHA1 Message Date
2857e6af8f Fixed spam problem. (I broke the API so this will not build)
The friend address is what the byte string that you give away for people
to add you will be called.

1. Every friend address now contains a number set by the friend. This is
to prevent someone from randomly spamming people in the DHT with friend
requests and makes it so you need the person to actually give you the
address in some way to send the friend request. This number is expected
to be encrypted with the friend request. All requests that do not
contain this number will be rejected. This means the spammer can no
longer use the DHT to collect lists of valid addresses to spam. It also
enables users to quickly change the number in case a spammer gets hold
of the address and starts spamming it.

2. A 2 byte checksum will be added (not implemented yet) to prevent
people from accidentally adding random strings as friends. (NOTE that
this has nothing to do with the spam problem I just decided to add a
placeholder for it now.)
2013-08-13 09:32:31 -04:00
fcf556cd1b Fixed merge problem and set better default names. 2013-08-13 07:39:04 -04:00
b17c1e9f33 Merge branch 'master' of https://github.com/JFreegman/ProjectTox-Core into JFreegman-master 2013-08-13 07:20:36 -04:00
98ecf06b4c core: Fix a possible buffer overflow using getself_name().
If the passed buffer is smaller than MAX_NAME_LENGTH then, you
will probably overflow it.
2013-08-13 09:50:51 +02:00
095b1b5db2 unresolved addresses fail silently 2013-08-12 22:34:08 -04:00
ab11469d37 put a bunch of repeated code into a function and added timestamps to status/nick changes 2013-08-12 20:28:43 -04:00
24083b3082 minor improvements and bug fixes 2013-08-12 19:50:50 -04:00
8687a54a87 Messenger refactor - redid work from pull request 79
Moves static state out of Messenger.c and into a Messenger struct
Purely stylistic, no functional changes were made.

This commit also changed all the callers of Messenger as they now have
to pass an instance of the Messenger struct to messenger functions.

Also removed some uses of the 'static' keyword at the beginning of
function definitions when the function was already declared static, as
these caused gcc to whine.
2013-08-12 21:37:38 +12:00
7d0a56e6a6 auto-connect to DHT on startup 2013-08-10 15:46:29 -04:00
e40344186e fixed chat window text wrapping 2013-08-09 00:25:45 -04:00
30377630ee added /me actions to toxic 2013-08-08 15:01:33 -04:00
90b4f9b98c Merge pull request #394 from Nominate/patch-2
Updated chat.c to bring /status inline with prompt.c status command
2013-08-08 08:27:19 -07:00
d6468d7d0c Updated chat.c to bring /status inline with prompt.c status command 2013-08-08 11:22:48 +01:00
297ee1ecaa fix magic numbers 2013-08-08 04:51:58 -04:00
90acd2dfef Merge branch 'master' of http://github.com/irungentoo/ProjectTox-Core
Conflicts:
	core/Messenger.c
	core/Messenger.h
2013-08-07 19:18:40 -04:00
8e881ca50f Merge branch 'master' of https://github.com/stqism/ProjectTox-Core into pull-requests
Conflicts:
	testing/toxic/prompt.c
2013-08-07 18:20:36 -04:00
174604a448 Modified clients to properly work with the changes 2013-08-07 18:12:59 -04:00
57601e0c1a Merge branch 'read-receipt' of https://github.com/stal888/ProjectTox-Core into pull-requests
Conflicts:
	testing/toxic/chat.c
	testing/toxic/prompt.c
2013-08-07 13:51:58 -04:00
660bfc1340 Check for correct error value in toxic. 2013-08-07 09:57:23 -07:00
65694a06c4 Fixed flash killing beep 2013-08-07 00:26:21 -07:00
5fd1a658bc code format/clean up 2013-08-06 18:27:51 -04:00
2fbe37f7cf Merge branch 'master' of https://github.com/JFreegman/ProjectTox-Core into JFreegman-master
Conflicts:
	testing/toxic/prompt.c
2013-08-06 10:16:26 -04:00
5517dc1f20 Added flash, apparently in weird cases it works when beep fails 2013-08-05 17:47:49 -07:00
173a1f8fb6 Merge pull request #341 from stal888/userstatus-ext
An extension to user statuses.
2013-08-05 17:24:04 -07:00
e9ca1321b0 Throws in a bell when a message is recieved, to warn to user 2013-08-05 15:39:32 -07:00
251a65ed0a spacing didn't match outgoing msgs 2013-08-05 18:38:55 -04:00
3d0b16c681 list commands on chat window popup 2013-08-05 16:34:55 -04:00
6494a4070b chat window deleting and re-adding - it just werks 2013-08-05 16:04:06 -04:00
51598d626a Make test clients compatible with userstatus kinds
No features were added, just fixed callbacks.
2013-08-05 12:30:40 -07:00
e0c0cedf8d Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into testing 2013-08-05 02:33:15 -04:00
8ab8f6b834 test 2013-08-05 02:32:50 -04:00
765a722c90 added ability to close and reopen chat windows & other minor changes 2013-08-05 01:57:29 -04:00
4ef0b68602 Fixed a calloc getting freed before being used 2013-08-04 13:16:08 -07:00
6f9dea8510 Manally merged #314 and #317 2013-08-04 03:52:24 -07:00
18dcb06920 didn't mean to delete that 2013-08-04 05:00:16 -04:00
6ea6af557b added command functionality to chat windows and a few minor improvements 2013-08-04 04:42:17 -04:00
99410a5100 fix for issue #306 2013-08-03 17:29:18 -04:00
f3ee620777 added seconds to time stamp in toxic 2013-08-03 16:26:23 +02:00
bbffe1b8a3 fixed printing time stamp in toxic 2013-08-03 16:00:48 +02:00
c571696c46 Removed some useless code 2013-08-03 04:10:47 -07:00
77b7694c41 Fixed a segfault when recieving text 2013-08-03 03:59:27 -07:00
36bd785cc7 Merge https://github.com/JFreegman/ProjectTox-Core 2013-08-02 22:31:21 -07:00
53f7d9af0d cursor done better, fixed for chat windows 2013-08-02 21:36:01 -04:00
6f331d6fcb Fixed a bug with the minutes only being 1 character long when less than 10 2013-08-02 17:14:47 -07:00
873736df5c Adds timestamp to toxic, fixes issue #217 2013-08-02 16:44:32 -07:00
f5ec15f11c Add nicknames to the chat list
Change from [chat <number>] to [<nickname> (<number>)]
2013-08-01 06:32:54 +02:00
498ead2866 Backspace key should now work on more terminals in toxic. 2013-07-31 15:22:43 -04:00
9559e37cfb toxic: Made everything 1000x more userfriendly. 2013-07-31 11:20:16 -07:00
7290527cdc Added chat windows, and some clean up. 2013-07-31 10:20:03 -07:00