Manuel Argüelles
11404240ce
Remove fix_name() function
...
With unicode support this function is not longer valid.
2013-08-21 16:24:33 -05:00
Manuel Argüelles
422a89d32d
Add wide char support in toxic (issue #440 )
...
Set current locale, use of get_wch instead of getch for reading, use
wctomb and friends to convert back from wchar_t, link with
cursesw. Unicode support is only added to chat windows.
2013-08-21 16:19:35 -05:00
irungentoo
43d0d7a1c0
astyle --options=tools/astylerc -r ./*.{c,h}
2013-08-20 19:37:05 -04:00
irungentoo
05fd02767f
Refactor of core done.
2013-08-20 14:47:32 -04:00
Jfreegman
10d97b2942
fix tab bar bugs
2013-08-19 16:55:04 -04:00
Aaron Lipinski
61b72daf6a
remove WINDOW_STATUS, simplify adding and selecting chat windows
2013-08-18 20:26:39 +12:00
irungentoo
9dce121a76
Passed everything through astyle.
2013-08-16 13:11:09 -04:00
Jfreegman
202d162d2e
small bug fixes
2013-08-14 16:02:21 -04:00
Aaron Lipinski
4a3292a32b
remove temporary callbacks from refactoring
2013-08-15 00:36:31 +12:00
Aaron Lipinski
2c81fd5e4b
remove externs in favor of includes
2013-08-15 00:36:30 +12: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
Jfreegman
095b1b5db2
unresolved addresses fail silently
2013-08-12 22:34:08 -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
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
7d0a56e6a6
auto-connect to DHT on startup
2013-08-10 15:46:29 -04:00
Jfreegman
e40344186e
fixed chat window text wrapping
2013-08-09 00:25:45 -04:00
Jfreegman
30377630ee
added /me actions to toxic
2013-08-08 15:01:33 -04: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
Nominate
d6468d7d0c
Updated chat.c to bring /status inline with prompt.c status command
2013-08-08 11:22:48 +01:00
Jfreegman
297ee1ecaa
fix magic numbers
2013-08-08 04:51:58 -04:00
Maxim Biro
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
irungentoo
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
Maxim Biro
174604a448
Modified clients to properly work with the changes
2013-08-07 18:12:59 -04:00
irungentoo
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
Sebastian Stal
660bfc1340
Check for correct error value in toxic.
2013-08-07 09:57:23 -07:00
Sean Qureshi
65694a06c4
Fixed flash killing beep
2013-08-07 00:26:21 -07:00
Jfreegman
5fd1a658bc
code format/clean up
2013-08-06 18:27:51 -04:00
irungentoo
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
Sean Qureshi
5517dc1f20
Added flash, apparently in weird cases it works when beep fails
2013-08-05 17:47:49 -07:00
irungentoo
173a1f8fb6
Merge pull request #341 from stal888/userstatus-ext
...
An extension to user statuses.
2013-08-05 17:24:04 -07:00
Sean Qureshi
e9ca1321b0
Throws in a bell when a message is recieved, to warn to user
2013-08-05 15:39:32 -07:00
Jfreegman
251a65ed0a
spacing didn't match outgoing msgs
2013-08-05 18:38:55 -04:00
Jfreegman
3d0b16c681
list commands on chat window popup
2013-08-05 16:34:55 -04:00
Jfreegman
6494a4070b
chat window deleting and re-adding - it just werks
2013-08-05 16:04:06 -04:00
Sebastian Stal
51598d626a
Make test clients compatible with userstatus kinds
...
No features were added, just fixed callbacks.
2013-08-05 12:30:40 -07:00
Jfreegman
e0c0cedf8d
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into testing
2013-08-05 02:33:15 -04:00
Jfreegman
8ab8f6b834
test
2013-08-05 02:32:50 -04:00
Jfreegman
765a722c90
added ability to close and reopen chat windows & other minor changes
2013-08-05 01:57:29 -04:00
Sean Qureshi
4ef0b68602
Fixed a calloc getting freed before being used
2013-08-04 13:16:08 -07:00
Sean Qureshi
6f9dea8510
Manally merged #314 and #317
2013-08-04 03:52:24 -07:00
Jfreegman
18dcb06920
didn't mean to delete that
2013-08-04 05:00:16 -04:00
Jfreegman
6ea6af557b
added command functionality to chat windows and a few minor improvements
2013-08-04 04:42:17 -04:00
charmlesscoin
99410a5100
fix for issue #306
2013-08-03 17:29:18 -04:00
Michael Kress
f3ee620777
added seconds to time stamp in toxic
2013-08-03 16:26:23 +02:00
Michael Kress
bbffe1b8a3
fixed printing time stamp in toxic
2013-08-03 16:00:48 +02:00
Sean Qureshi
c571696c46
Removed some useless code
2013-08-03 04:10:47 -07:00