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

1570 Commits

Author SHA1 Message Date
Aaron Lipinski
063523a042 add header guard and includes to windows.h 2013-08-15 00:36:30 +12:00
Aaron Lipinski
5d07842d96 prefer param over static
Conflicts:
	testing/toxic/main.c
2013-08-15 00:34:22 +12:00
Astonex
4a6edcbf1e Update prompt.c
Make id uppercase.
2013-08-14 11:23:38 +01:00
Michael Rose
5225b7d55c C99 fix 2013-08-14 11:59:11 +02:00
Michael Rose
6df39d572b populate friends in toxic on startup 2013-08-14 11:37:58 +02:00
Aaron Lipinski
ce9d066054 Have toxic handle new no-spam values from friend request 2013-08-14 21:16:58 +12:00
Michael Rose
076ea43c07 fix memory leak 2013-08-14 09:31:19 +02:00
Michael Rose
1158930641 store messenger when friends are added 2013-08-13 22:07:46 +02:00
irungentoo
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
irungentoo
fcf556cd1b Fixed merge problem and set better default names. 2013-08-13 07:39:04 -04:00
irungentoo
b17c1e9f33 Merge branch 'master' of https://github.com/JFreegman/ProjectTox-Core into JFreegman-master 2013-08-13 07:20:36 -04:00
Andreas Schneider
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
Andreas Schneider
b5a4cac6e1 toxic: Fix get_user_config_dir(). 2013-08-13 09:50:42 +02:00
Jfreegman
095b1b5db2 unresolved addresses fail silently 2013-08-12 22:34:08 -04:00
Jfreegman
0c6204ce82 auto-connect errors verbose 2013-08-12 22:04:07 -04:00
Jfreegman
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
Jfreegman
24083b3082 minor improvements and bug fixes 2013-08-12 19:50:50 -04:00
irungentoo
b2f4e266d3 Merge pull request #439 from Alek900/master
Added support for userdata in callbacks
2013-08-12 13:33:20 -07:00
irungentoo
420858cb6f Merge pull request #437 from JFreegman/master
make connection more robust for toxic
2013-08-12 08:13:33 -07:00
alek900
3946277a07 Added support for userdata in callbacks 2013-08-12 14:23:46 +02:00
Jfreegman
8162cfde0d a little overkill 2013-08-12 05:59:08 -04:00
Chris Hall
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
Jfreegman
a8d2ab1af0 make connection more robust 2013-08-12 03:10:47 -04:00
Simon Levermann
652f7aec26 Fix a possible memory leak 2013-08-11 17:51:10 +02:00
irungentoo
1d1bff14a2 Merge pull request #423 from JFreegman/master
Auto-connect toxic to DHT on startup
2013-08-11 07:40:07 -07:00
Jfreegman
663f4eb4ff potential seg fault 2013-08-11 00:55:09 -04:00
lukechampine
309de72829 make argument handling (esp. of strings) more robust 2013-08-10 20:10:03 -04:00
Jfreegman
31a9a344d2 was making the ID change on every startup 2013-08-10 18:00:54 -04:00
Jfreegman
35f7ba210d fix memory leak 2013-08-10 16:28:40 -04:00
Jfreegman
d99e8c9926 don't need that 2013-08-10 15:50:49 -04:00
Jfreegman
7d0a56e6a6 auto-connect to DHT on startup 2013-08-10 15:46:29 -04:00
Luke Champine
0314d11bf0 make toxic handle input in a more sane manner 2013-08-09 10:31:29 -04:00
irungentoo
9237bbc0d7 Merge pull request #407 from JFreegman/master
fixed chat window text wrapping in toxic
2013-08-09 05:35:01 -07:00
Jfreegman
e40344186e fixed chat window text wrapping 2013-08-09 00:25:45 -04:00
irungentoo
7de004aea1 added -n argument to toxic to disable loading keys from file (for testing) 2013-08-08 18:50:29 -04:00
irungentoo
7501822535 Merge pull request #400 from JFreegman/master
Added actions/alternative type of messages
2013-08-08 12:40:15 -07:00
Jfreegman
30377630ee added /me actions to toxic 2013-08-08 15:01:33 -04:00
Simon Levermann
61d0d2dff0 Merge branch 'upstream' 2013-08-08 18:06:10 +02:00
Simon Levermann
e5c6e88ec0 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into upstream 2013-08-08 18:05:41 +02:00
irungentoo
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
irungentoo
ed10f009bd Merge pull request #393 from Nominate/patch-1
Removed superfluous statusmsg
2013-08-08 08:26:19 -07:00
irungentoo
0eff37e3d7 Moved a define and fixed another. 2013-08-08 10:59:22 -04:00
Simon Levermann
a9ec08b998 Cleanup and Error fixes
Add several frees that were missing to prevent memory leaks
Replace strcpy with strdup where appropriate
Replace _stat with __stat64 for building on Windows
2013-08-08 16:36:16 +02:00
Simon Levermann
c3c144ddd0 Implement proper config directories. 2013-08-08 16:00:12 +02:00
irungentoo
7bcff9eb99 Merge pull request #384 from stqism/master
Adds full -D support to toxics versioning, includes the commit number
2013-08-08 06:34:42 -07:00
Nominate
d6468d7d0c Updated chat.c to bring /status inline with prompt.c status command 2013-08-08 11:22:48 +01:00
Nominate
6a37d6e9f1 Removed superfluous statusmsg
Users can just respecify their status with a message.  This will also encourage users to think about which status is actually appropriate instead of just leaving the status alone.
2013-08-08 11:09:46 +01:00
Sean Qureshi
7475d4fea3 Merge https://github.com/irungentoo/ProjectTox-Core 2013-08-08 03:07:41 -07:00
Sean Qureshi
4cf43ae097 Merged upstream main.c changes 2013-08-08 03:04:36 -07:00
Jfreegman
757073a461 oops 2013-08-08 04:55:22 -04:00