Commit graph

227 commits

Author SHA1 Message Date
Håvard Pettersson
3ef7cde92e Removed twc_config_profile_write_callback. 2014-10-12 12:31:22 +02:00
Håvard Pettersson
e6e4fd568e Added some config options. 2014-10-12 12:24:49 +02:00
Håvard Pettersson
a437931e41 Allocate Tox_Options statically. 2014-10-11 13:56:34 +02:00
Håvard Pettersson
a00e0f311f Fixed twc_friend_request_add return value. 2014-10-11 12:47:43 +02:00
Håvard Pettersson
cceb25409e Formatting. 2014-10-11 12:45:14 +02:00
Håvard Pettersson
a10b923ef9 Added option for enabling/disabling IPv6. 2014-10-11 12:27:31 +02:00
Håvard Pettersson
41d6c80de7 Fixed /friend accept|decline documentation. 2014-10-11 12:14:15 +02:00
Håvard Pettersson
071a70618e Added -force flag to /friend add. 2014-10-11 12:12:06 +02:00
Håvard Pettersson
f956109dc6 Fixed bug in twc_match_friend. 2014-10-11 12:11:55 +02:00
Håvard Pettersson
328ac28aa8 Actually care about max_friend_requests. 2014-10-11 11:48:24 +02:00
Håvard Pettersson
270fc20989 Moved profile_default option array to profile.{h,c}. 2014-10-11 11:44:29 +02:00
Håvard Pettersson
613fd7ee6d Updated /tox documentation. 2014-10-11 11:31:09 +02:00
Håvard Pettersson
a11590f650 Added /tox reload command. 2014-10-11 11:30:15 +02:00
Håvard Pettersson
38df57f07c Tweaked config code. 2014-10-11 11:23:26 +02:00
Håvard Pettersson
188f3452e1 Renamed some options. 2014-10-11 10:30:05 +02:00
Håvard Pettersson
ab1cef34fc Implemented proxy capabilities. 2014-10-11 10:24:25 +02:00
Håvard Pettersson
70959e3d6e Pass proxy options when creating Tox object. 2014-10-11 08:52:31 +02:00
Håvard Pettersson
b585904557 Added validation of proxy_address option. 2014-10-11 08:46:26 +02:00
Håvard Pettersson
602bf76962 Added proxy options. 2014-10-11 08:28:41 +02:00
Håvard Pettersson
68cb3cc543 Fixed crash with invalid group invite numbers. 2014-10-10 11:36:54 +02:00
Håvard Pettersson
6fc93d1f7a Save Tox profile data on /save. 2014-10-07 04:02:06 +02:00
Håvard Pettersson
91b8ebdd4c Renamed method twc_save_profile_data_file.
New name twc_profile_save_data_file.
2014-10-07 03:53:04 +02:00
Håvard Pettersson
6e09fb4b7e Added int twc_save_profile_data_file to header. 2014-10-07 03:50:52 +02:00
Håvard Pettersson
67d0ca6db0 Fixed friend request number in reminder message. 2014-10-06 13:19:37 +02:00
Håvard Pettersson
57dd75afaa Handle WeeChat -a/--no-autoconnect flag. 2014-10-05 22:54:55 +02:00
Håvard Pettersson
391c5829d8 Fixed warning. 2014-10-05 05:27:42 +02:00
Håvard Pettersson
5f3d2f04f7 Added nicklist to group chats. 2014-10-05 05:22:59 +02:00
Håvard Pettersson
06ca342213 Fixed group chat joining. 2014-10-05 02:30:08 +02:00
Håvard Pettersson
4d852487b2 Added profile to buffer names to avoid conflicts. 2014-10-05 01:46:59 +02:00
Håvard Pettersson
11609f6bb4 Formatting. 2014-10-05 01:36:45 +02:00
Håvard Pettersson
0499f92ad7 Fixed bugs with names containing spaces. 2014-10-05 01:31:54 +02:00
Håvard Pettersson
9a97a3fe0c sd. 2014-10-05 00:28:47 +02:00
Håvard Pettersson
78364e3d13 Added name and Tox ID completion. 2014-10-05 00:24:52 +02:00
Håvard Pettersson
d90e3e5b58 Prevented crash when typing into group chats. 2014-10-05 00:06:35 +02:00
Håvard Pettersson
a30abf4ec4 Added /nospam command. 2014-10-05 00:06:35 +02:00
Håvard Pettersson
1d64f5ac50 Added twc_uint32_reverse_bytes function. 2014-10-05 00:06:35 +02:00
Håvard Pettersson
069c4540ec More group chats. 2014-10-04 23:13:49 +02:00
Håvard Pettersson
f81176881f Wrote group chat invite code. 2014-10-04 21:42:30 +02:00
Håvard Pettersson
4c6e739527 Added group chat code. 2014-10-04 20:57:29 +02:00
Håvard Pettersson
225e576d57 Added SQLite persistent storage for friend requests. 2014-10-04 20:12:56 +02:00
Håvard Pettersson
b0e91b7b5b Fixed typo. 2014-10-02 00:34:42 +02:00
Håvard Pettersson
4638ad0995 Removed twc-data.{h,c}. 2014-10-01 04:55:39 +02:00
Håvard Pettersson
d6193777c9 Tweaked README, fixed links. 2014-09-30 20:40:24 +02:00
Håvard Pettersson
a1ea878956 Changed message_queues hashtable size to 32. 2014-09-28 14:31:34 +02:00
Håvard Pettersson
bbd514f825 Cleaned up includes. 2014-09-28 05:55:18 +02:00
Håvard Pettersson
8f1d0070c3 Mass refactor 💥 2014-09-28 05:20:53 +02:00
Håvard Pettersson
6dfacdf04c Implemented loading unsent messages from disk. 2014-09-26 22:50:50 +02:00
Håvard Pettersson
3cf80be3e9 Added method declaration. 2014-09-26 22:23:45 +02:00
Håvard Pettersson
1af9ee8069 Removed unnecessary header declarations. 2014-09-26 22:04:37 +02:00
Håvard Pettersson
3125ca77d6 Use Jansson _new methods instead of decrefing. 2014-09-26 22:02:43 +02:00
Håvard Pettersson
3ed68cd364 Refactored offline messaging. 2014-09-26 21:57:21 +02:00
Håvard Pettersson
d45167971d Added tags to printed messages. 2014-09-26 18:33:17 +02:00
Håvard Pettersson
3fb416adb0 Store unsent messages for later transmission. 2014-09-21 01:17:20 +02:00
Håvard Pettersson
9b39ef3953 Fixed data loading/saving. 2014-09-20 23:36:40 +02:00
Håvard Pettersson
06e7747142 Renamed tox-weechat-json to -data. 2014-09-20 23:31:19 +02:00
Håvard Pettersson
e02d2c9b0e Refactoring. 2014-09-20 23:27:28 +02:00
Håvard Pettersson
f03103fa8f Rewrore JSON load/save code. 2014-09-20 22:36:31 +02:00
Håvard Pettersson
cf95a320b2 Cleaned up and documented friend request code. 2014-09-20 21:43:22 +02:00
Håvard Pettersson
43146709b2 Added a size argument to hex2bin.
This avoids buffer overflows and related bad things.
2014-09-20 20:28:03 +02:00
Håvard Pettersson
7c81c9dcfc Fixed connecting/disconnecting. 2014-09-20 09:06:34 +02:00
Håvard Pettersson
f7b086d38d Implemented /tox disconnect. 2014-09-19 19:15:19 +02:00
Håvard Pettersson
4882e83970 Added tox_connected_identities and tox_disconnected_identities. 2014-09-19 18:55:50 +02:00
Håvard Pettersson
3731737800 Fixed /tox completion. 2014-09-19 18:41:53 +02:00
Håvard Pettersson
1f6a0b1e7d Implemented /tox delete command. 2014-09-19 18:41:28 +02:00
Håvard Pettersson
2f057a380f Implemented /tox delete. 2014-09-19 18:20:39 +02:00
Håvard Pettersson
0e61f47b66 Inverted function argument (keep_data -> delete_data). 2014-09-19 18:20:36 +02:00
Håvard Pettersson
bc85c337a6 Implemented tox_weechat_identity_delete. 2014-09-19 18:10:45 +02:00
Håvard Pettersson
4c04d2b915 Renamed /myaddress to /myid. 2014-09-19 17:24:41 +02:00
Håvard Pettersson
d4ea20b555 Tweaked command /tox, added completion. 2014-09-19 17:03:10 +02:00
Håvard Pettersson
9810bf14d9 Added tox-weechat-completion.{h,c}. 2014-09-19 16:55:11 +02:00
Håvard Pettersson
95b9a2322f Updated bootstrap nodes. 2014-09-19 06:40:05 +02:00
Håvard Pettersson
4c13200888 Fixed bug where friend request message was freed too soon. 2014-09-18 19:55:16 +02:00
Håvard Pettersson
1bd4d6b02b Prevent redundant name change messages. 2014-09-18 19:54:05 +02:00
Håvard Pettersson
3a6fc1d6f3 Don't notice about pending friend requests when there are none. 2014-09-18 19:13:52 +02:00
Håvard Pettersson
6cdb71e086 Changed license to GPL3. 2014-09-18 18:56:43 +02:00
Håvard Pettersson
48991d38b1 Added tox-weechat-json.{h,c}. 2014-09-18 17:57:02 +02:00
Håvard Pettersson
4dcc088e1d Added a data.json file for storing things.
For now, the file contains pending friend requests.
2014-09-18 17:51:19 +02:00
Håvard Pettersson
66b7f06002 Tweaked requirements. 2014-09-18 16:08:48 +02:00
Håvard Pettersson
e02f0db030 Added a notice for friends going offline. 2014-09-18 01:27:15 +02:00
Håvard Pettersson
0fb2d0b205 Changed unnecessary mallocs into static allocation. 2014-09-18 01:21:08 +02:00
Håvard Pettersson
7d5ffb89a5 Cleaned up friend request code. 2014-09-18 01:16:55 +02:00
Håvard Pettersson
a467fb7455 Changed default Tox name. 2014-09-18 00:34:52 +02:00
Håvard Pettersson
96b744c817 Use weechat_strndup instead of strndup. 2014-09-17 23:49:38 +02:00
Håvard Pettersson
a6ec60e3c0 Handle all TOX_FAERR codes. 2014-09-17 23:49:38 +02:00
Håvard Pettersson
b3b15b1a89 Refactored and fixed bootstrap process.
This fixes a bug where htons would be called twice on port numbers
after an update to libtoxcore.
2014-09-17 17:22:18 +02:00
Håvard Pettersson
dfcb43d4f8 Don't create a new identity if it exists already. 2014-09-17 16:35:36 +02:00
Håvard Pettersson
6b24f3a0b9 Number friend requests from zero like friend numbers. 2014-09-13 22:19:28 +02:00
Håvard Pettersson
c0a54dee82 Removed unused #define. 2014-09-13 21:58:15 +02:00
Håvard Pettersson
c27617f3c8 Fixed typo in bootstrapping process. 2014-09-13 21:01:48 +02:00
Håvard Pettersson
2667b6c377 Added more bootstrap nodes. 2014-09-13 20:47:14 +02:00
Håvard Pettersson
c6818f812f Create folder for save file if it does not exist. 2014-09-13 12:40:53 +02:00
Håvard Pettersson
901168ae8c Removed debug spam. 2014-09-13 12:26:27 +02:00
Håvard Pettersson
e7ec533944 More support for multiple identities. 2014-09-13 12:26:27 +02:00
Håvard Pettersson
edc5e16d8a Refactoring for multi-identity support. 2014-09-13 12:26:27 +02:00
Håvard Pettersson
5a3b0cc583 Changed bar item buffer_plugin to show plugin name and identity name. 2014-09-13 12:26:27 +02:00
Håvard Pettersson
b8e0a9d70c Fixed identity initialization. 2014-09-08 03:03:12 +02:00
Håvard Pettersson
026b43e599 Fixed a crash if no Tox identities exist. 2014-09-08 03:01:12 +02:00
Håvard Pettersson
8abb0a9037 Fixed tox_weechat_data_path error. 2014-09-08 01:39:29 +02:00
Håvard Pettersson
b60ac98a3e More support for multiple identities. 2014-09-07 03:04:42 +02:00
Håvard Pettersson
76d07ed4f6 Initial work for supporting multiple identities. 2014-09-05 16:53:44 +02:00
Håvard Pettersson
b5cff8fac8 Fixed address not being displayed when friend name is unknown. 2014-09-04 18:58:50 +02:00
Håvard Pettersson
43874e23cc Fixed missing network prefix in message. 2014-09-04 18:54:30 +02:00
Håvard Pettersson
d8d9791e0b If a friend's name is unknown, display their address instead. 2014-09-04 00:37:08 +02:00
Håvard Pettersson
45b8bdc04d Fixed bug where the wrong address would be echoed after accepting a
friend request.
2014-09-04 00:34:10 +02:00
Håvard Pettersson
62f6dca32e Fixed a bug where it was impossible to accept specific friend requests. 2014-09-04 00:32:18 +02:00
Håvard Pettersson
ec0c54acb8 Added /friend remove command. 2014-09-04 00:24:37 +02:00
Håvard Pettersson
136cd966aa Added a bar item next to nickname when busy/away. 2014-09-03 23:38:30 +02:00
Håvard Pettersson
d290499d9d Added /status command. 2014-09-03 15:19:09 +02:00
Håvard Pettersson
686a2ef062 Added /statusmsg command. 2014-09-03 00:19:46 +02:00
Håvard Pettersson
9d24666f7c Fixed /msg outputting like an action locally. 2014-09-02 23:57:48 +02:00
Håvard Pettersson
30be0397da Fixed /msg sending recipient as part of the message. 2014-09-02 23:57:06 +02:00
Håvard Pettersson
49ad868436 Added /bootstrap command. 2014-09-02 23:49:41 +02:00
Håvard Pettersson
27375ad5ed Added a return value for tox_weechat_bootstrap. 2014-09-02 23:40:54 +02:00
Håvard Pettersson
2192806a41 Separated bootstrap process to a function. 2014-09-02 23:36:24 +02:00
Håvard Pettersson
f001ccb132 Added an online/offline indicator in status bar. 2014-09-02 23:23:09 +02:00
Håvard Pettersson
fdccf7b7af Added online_status flag. 2014-09-02 23:11:35 +02:00
Håvard Pettersson
d331e6f3eb Fixed license in WEECHAT_PLUGIN_LICENSE macro. 2014-09-02 21:18:23 +02:00
Håvard Pettersson
26c8237bdf Fixed help text for /friend add command. 2014-09-02 21:17:36 +02:00
Håvard Pettersson
a3aae117ab Fixed bug where chats would not refresh properly on nick/status changes. 2014-09-02 20:34:22 +02:00
Håvard Pettersson
5a630d6a23 asd 2014-09-02 20:24:47 +02:00
Håvard Pettersson
926b6951f6 Implemented more things. 2014-09-02 20:15:08 +02:00
Håvard Pettersson
b65e289d91 Implemented /friend list. 2014-09-02 18:59:11 +02:00
Håvard Pettersson
ca6a80f4cb Things 2014-09-02 18:47:08 +02:00
Håvard Pettersson
8fdcc5173f Stuff. 2014-09-02 13:59:38 +02:00
Håvard Pettersson
f79de0229b Added tox-weechat-tox.* 2014-09-02 13:59:07 +02:00
Håvard Pettersson
7c2d98c32b Added tox-weechat-utils.* 2014-09-02 13:58:34 +02:00
Håvard Pettersson
7354b302b4 Initial commit. 2014-09-02 12:37:00 +02:00