Commit Graph

1893 Commits

Author SHA1 Message Date
Coren[m]
bde536f6bc
Add a "conversation mode", where you set your conversation partner once and then all non-commands are sent as message to them.
/cf # rsp. /cg # sets, /cr resets target

Also reformatted display of sent group message slightly to look less beta-ish.
Then using "#<num>" for group number vs. "<num>" for friend/peer numbers.
Also changed to a slightly different message on people without name.
2013-11-13 22:34:02 +01:00
irungentoo
5e6fbf33b5 Cleaned up the code. 2013-11-12 20:59:32 -05:00
irungentoo
244c625e51 Merge branch 'group_peername' of https://github.com/FullName/ProjectTox-Core into FullName-group_peername 2013-11-12 19:41:52 -05:00
irungentoo
62125ce90f Merge pull request #645 from FullName/nTox-patches
nTox: enforce friend name null termination, reduce memory loss, allow nickchange as oldname=>newname
2013-11-12 12:50:54 -08:00
Coren[m]
6d31a9be7e
Group chat: Add a nickname message. Remove strange default nickname. (Seriously...)
group_chats.*:
- group_send_nick() to send own name
- setnick() to store a received name

Messenger.c:
- group_send_nick() before group_sendmessage() (in regular intervals, to inform new peers)

nTox.c:
- print_groupmessage(): on error or on a name of length zero the result of tox_group_peername() isn't null-terminated, catch that
2013-11-12 19:57:01 +01:00
Coren[m]
e457eb6635
Undo faulty newlines, undo extra newlines. 2013-11-12 14:17:48 +01:00
irungentoo
18c98eb87d Fixed possible segfault. 2013-11-11 13:42:09 -05:00
Coren[m]
81d4e4d2b8 Merge remote-tracking branch 'upstream/master' into nTox-patches 2013-11-11 15:28:15 +01:00
Coren[m]
553aba0498
nTox.c:
- multiple places: tox_getname() doesn't terminate the string, make sure nTox does
- format_message():
.  - renamed to print_formatted_message()
.  - changed semantics: does the new_line() itself, saves caller from freeing the buffer (which no caller did)
.  - changed signature: now also prints the friend's name when sending
.  - intern: date is only printed once, the message line gets only time
- print_message(): enforce null termination
- main():
.  - setlocale() to init locale (for date/time printing)
.  - own name: ensure null termination

Messenger.c:
- notify of friend name change *before* the old name is overwritten
2013-11-11 15:25:54 +01:00
irungentoo
ba000a2424 Merge pull request #643 from FullName/nTox-patches
Started as a simple bugfix for wrap(), expanded to more detailed help.
2013-11-10 16:45:33 -08:00
irungentoo
0a3f1f3aee Fixed test. 2013-11-10 19:45:24 -05:00
irungentoo
4943054742 Fixed small issues.
DHT_test now only prints non zero entries.
2013-11-10 17:57:24 -05:00
irungentoo
ce29937b8d Added more printing to DHT_test, fixed typo. 2013-11-10 14:55:36 -05:00
irungentoo
57763f2737 Merge branch 'master' into harden
Conflicts:
	toxcore/DHT.c
2013-11-10 14:32:46 -05:00
Coren[m]
4993928888
Started as a simple bugfix for wrap(), expanded to more detailed help.
nTox.c:
- flag[]: additional flag for special wrapping
- help expanded and split (to keep below 256 chars)
- new_lines_mark(): stores flag for special wrapping
- print_friendlist():
.  - extracted pattern for output
.  - added length of id string allocation
.  - replaced '\t' with '+ ', wrappers don't account for '\t'
- line_eval():
.  - removed a few do_refresh() directly after a new_lines() (calls do_refresh() at its end)
.  - 'h' (help): parsing of an additional character for f(riend) or g(roup)
- wrap():
.  - the major bugfix:
.    - no more endless looping if the input had a substring with no spaces
.      for more than line_width (e.g. ID of 78 and window smaller than 78)
- wrap_bars(): wrap() for "rich" messages, honors embedded '\n', breaks preferable at '|'
- print_help(): listed all options and added explanations
- print_invite(): fixed minuscule typo
- main(): made print_help() reachable again

nTox.h:
- majorly cut down to what is really needed
2013-11-10 19:06:17 +01:00
irungentoo
572fb60392 Optimized data sending slightly more. 2013-11-09 22:29:16 -05:00
irungentoo
e30105af20 Code cleanups. 2013-11-08 21:01:20 -05:00
irungentoo
e1b215cfa9 Merge branch 'add2lists_forward' of https://github.com/FullName/ProjectTox-Core into FullName-add2lists_forward 2013-11-07 17:39:10 -05:00
irungentoo
a980f46465 Merge pull request #642 from FullName/dht_handle_sendnodes_unify
Unify most of handle_sendnodes[_ipv6]() into a common core.
2013-11-07 14:19:11 -08:00
irungentoo
af62804c94 Merge pull request #641 from FullName/autotests_reduce
Reduce duplicate data. Add a mostly empty skeleton test.
2013-11-06 17:43:37 -08:00
irungentoo
4bf4b3f47c Merge pull request #640 from FullName/logging_fixes
Behind #define LOGGING: Correct usage of now() to replacement unix_time().
2013-11-06 15:44:52 -08:00
Coren[m]
b060d87483
Unify most of handle_sendnodes[_ipv6]() into a common handle_sendnodes_core(), leave only a minimal trail. 2013-11-06 21:55:22 +01:00
Coren[m]
fdefb18fc1
Reduce duplicate data. Add a mostly empty skeleton test. 2013-11-06 20:32:19 +01:00
Coren[m]
03485a8d05
Behind #define LOGGING: Correct usage of now() to replacement unix_time(). 2013-11-06 15:26:08 +01:00
Coren[m]
aee50435c8
addto_lists(): store the IP/Port that was used to *send*.
Avoids a DOS of sending a copy of a valid response with an invalid IP.
2013-11-06 14:50:55 +01:00
irungentoo
71f7a49402 Auto delete inactive peers in the group chat. 2013-11-05 20:41:33 -05:00
irungentoo
78793140ef Send ping packets in group chats every 30 seconds. 2013-11-04 21:03:27 -05:00
irungentoo
2e6250ee44 The group chats we invite a friend to are now stored. 2013-11-03 17:39:49 -05:00
irungentoo
41e083c173 Fixed possible issue. 2013-11-02 23:14:56 -04:00
irungentoo
91c9dc2464 Get node testing response packets are now handled. 2013-11-02 23:04:03 -04:00
irungentoo
52d1c9a4d9 Merge pull request #637 from blackwolf12333/master
Make the av_api.md look a bit better
2013-11-01 14:13:40 -07:00
Peter Maatman
7fc3ed009a Update av_api.md
forgot one paragraph
2013-11-01 12:01:39 +01:00
Peter Maatman
52ee379677 Update av_api.md
some markup was fucked up :P
2013-11-01 12:00:42 +01:00
Peter Maatman
21c8c672c1 Update av_api.md
that looks better :)
2013-11-01 11:59:05 +01:00
Peter Maatman
760edd0c56 Update av_api.md
and some more
2013-11-01 11:55:22 +01:00
Peter Maatman
0234609ab1 Update av_api.md
add some more shiny stuff
2013-11-01 11:53:26 +01:00
Peter Maatman
9ff287569e Update av_api.md
add some code blocks in the markup
2013-11-01 11:52:31 +01:00
Peter Maatman
6c0cfd08e6 Update av_api.md 2013-11-01 11:50:46 +01:00
Peter Maatman
fb13210477 Update av_api.md 2013-11-01 11:50:07 +01:00
irungentoo
d56909f410 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core 2013-10-30 20:25:32 -04:00
irungentoo
b41edb05fd Updated hardening doc. 2013-10-30 20:25:02 -04:00
irungentoo
beaa31bebc Testing requests are now sent. 2013-10-30 19:50:06 -04:00
irungentoo
e2e1689209 Merge pull request #636 from fr0stycl34r/patch-1
Offer solution for "error while loading shared libraries: libtoxcore.so....
2013-10-29 10:13:53 -07:00
fr0sty
b903a314d9 Offer solution for "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory".
Offer solution for "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory".
2013-10-29 13:10:44 -04:00
irungentoo
415835ce3d Merge branch 'master' into harden
Also removed some old, useless loading code.
2013-10-28 16:01:29 -04:00
irungentoo
988922bdeb Removed some now useless code. 2013-10-28 15:52:46 -04:00
irungentoo
2bdce93437 Merge pull request #635 from Martijnvdc/master
added AV_codec.h to public headers
2013-10-28 12:00:11 -07:00
Martijn
5971d8f795 renamed AV_codec to toxmedia 2013-10-28 14:19:38 +01:00
Martijn
3d019fb115 added AV_codec.h to public headers 2013-10-28 13:51:48 +01:00
irungentoo
cb0316bf2e Merge pull request #634 from jin-eld/fix-public-headers
Public headers should not have any internal references
2013-10-28 05:32:48 -07:00