Michael Vetter
10ca3e8c31
Possibility to specify alternative config file
...
Introduce `profanity -c` to specify an alternative config file.
2019-08-02 15:55:47 +02:00
Michael Vetter
88552da2d4
Add omemo_close stub for tests
2019-07-18 08:02:52 +02:00
Paul Fariello
ecf00af05b
Add missing stub file
2019-07-17 16:02:12 +02:00
Paul Fariello
db8f32c049
Fix handling of encrypted carbons
2019-06-21 15:52:24 +02:00
Paul Fariello
f831f65737
Rename prof_message_t into ProfMessage
2019-06-20 14:30:45 +02:00
Paul Fariello
44d16e9141
Add prof_message_t to wrap all message attributes
...
Probably missing copy of body to plain in carbon and privmessage.
Only covers the incoming message path because goal is OMEMO decryption
of untrusted message.
Cover some of the log functions but not all.
2019-06-20 14:30:42 +02:00
Michael Vetter
6c9631d7ea
Fix prefs_get_str related leaks in unit tests
...
Related to https://github.com/profanity-im/profanity/issues/1019
2019-06-19 17:15:47 +02:00
Michael Vetter
de787a8582
Remove cons_mouse_setting() stub
...
Mouse support has been disabled long ago.
2019-06-17 13:30:56 +02:00
Dmitry Podgorny
6138a5f79b
Cancel autoping timer on disconnect or connection loss
...
If Profanity is disconnected in any way before ping response is
received, the autoping timer will expire after the next connection
is established. As result, user will be disconnected immediately.
Cancel autoping timer in ev_disconnect_cleanup(), so it is done
for all kind of disconnections.
2019-06-03 13:28:00 +03:00
Frank Zschockelt
4683395aca
Use mock_type() for casting mock()
2019-05-08 21:52:16 +02:00
Frank Zschockelt
a5db791dc4
Use mock_ptr_type() to silence compiler warnings
...
Unit tests on 32-bit architectures were failing due to
"cast to pointer from integer of different size" warnings.
mock_ptr_type silences those by first casting to uintptr_t.
2019-05-08 21:51:29 +02:00
Michael Vetter
a28f0d9e74
Update tests with new URL
...
https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:46:41 +02:00
Michael Vetter
0d8a39d8dd
Add occupantswin_occupants_all() stub to unittest
2019-04-23 14:47:42 +02:00
Paul Fariello
6d39f49f57
Fix server_event unit tests
...
roster_update_presence now requires that
roster_process_pending_presence() has been called. Otherwise presence
are set to pending and not processed yet.
2019-04-17 14:19:31 +02:00
Paul Fariello
3ef9123ccb
Fix OTR unit test after account_new API change
2019-04-17 14:03:14 +02:00
Paul Fariello
7df7e05639
Fix unit test after account_new API change
2019-04-17 14:03:14 +02:00
Michael Vetter
b40fcf248c
Add omemo_start_sessions to unittest stub
2019-04-14 00:02:17 +02:00
Paul Fariello
0bc660400b
Automatically starts OMEMO if one identity is trusted
2019-04-10 17:24:56 +02:00
Paul Fariello
4ad6904216
Wait for discovery end to publish omemo devicelist and bundle
...
Add sv_ev_connection_features_received for that purpose
2019-04-10 17:23:46 +02:00
Paul Fariello
e69f947547
Rework MUC reflected message filtering
...
Reflected messages can't be filtered by nick only otherwise you might
ignore messages comming from you on another devices.
Consequently we maintain a list of sent messages id in mucwin.
To be sure the id will be correctly reflected we use the origin-id
stanza.
2019-04-10 17:23:46 +02:00
Paul Fariello
e7be3a605b
Add OMEMO in prefs command
2019-04-10 17:23:46 +02:00
Paul Fariello
daf84ced0c
Add required OMEMO stub for unit-test
2019-04-10 17:23:45 +02:00
Philip Flohr
5b7f9dffbc
Fix broken support for case-sensitive account names
...
Don't lower account name before calling accounts_get_account().
Only lower if there is no account with the given name and the name is
interpreted as a jid.
Updated unittests to test this behaviour.
Fixes #725
.
2019-02-22 13:08:08 +01:00
Michael Vetter
706af9a900
Update copyright to include 2019
2019-01-22 11:31:45 +01:00
Dmitry Podgorny
e3f2ca7d10
tests: remove cflag -w and fix warnings
...
The flag hides errors. But we want unit tests to be correct in order
to reveal errors in the main code.
The patch removes tests_unittests_unittests_CFLAGS which makes autotools
use AM_CFLAGS instead. Therefore, unit tests are built with flags
derived from configure.ac.
2018-10-31 18:35:59 +02:00
Michael Vetter
47f90d7a39
Merge pull request #991 from paulfariello/feature/xep-0050
...
Add support for xep 0050 ad-hoc commands, without multi-step
2018-09-27 17:27:37 +02:00
Michael Vetter
82f8083b85
Move p_sha1_hash() to stanza.c
...
Move `p_sha1_hash()` from `common.c` to `xmpp/stanza.c` as it is only
used in this file and now depends on libstrophe so xmpp is a better
namespace folder.
Renaming it as `_stanza_create_sha1_hash()`. And making static since
only used here.
The function cannot be tested in the unit tests anymore.
Once functional tests are working again we should write a test for the
sha1 functionality.
2018-09-06 20:40:09 +02:00
Paul Fariello
f0f973fcb4
Remove unused stup session_get_domain
2018-09-05 15:34:22 +02:00
Paul Fariello
e9e5f382da
Add connection_get_domain stub for tests
2018-09-05 15:13:20 +02:00
Paul Fariello
233e076be9
Add support for command config execution
2018-09-05 13:52:19 +02:00
Paul Fariello
b11d3a79df
Add conf win callback
2018-09-05 13:51:00 +02:00
Paul Fariello
a952776b89
Rename mucconf wins into conf wins
...
Configuration windows are now being used by both muc and cmd.
2018-09-05 13:51:00 +02:00
Paul Fariello
c9f6a78f57
Add command subcommands: list and exec
...
Also handle list result
2018-09-05 13:49:40 +02:00
Rafael Sadowski
bcaf55e5b8
fix: Missing pthread include
2018-08-13 17:19:51 +02:00
James Booth
ee664bf1d2
Add room /me functional tests
2018-04-21 20:40:11 +01:00
James Booth
59382984c0
Add preferences for tab display
2018-03-09 21:15:27 +00:00
James Booth
720dce866e
Add prefs for empty tabs and tab names
2018-03-08 22:27:49 +00:00
James Booth
119c5650cf
Show name in statusbar tabs WIP
2018-03-08 20:01:36 +00:00
James Booth
7c5ece24c5
Use jid argument for /bookmark when in room
...
fixes #983
2018-03-04 00:35:53 +00:00
James Booth
26a182945f
Add /rooms cache
2018-02-05 20:01:54 +00:00
James Booth
8db2389df6
Filter rooms by simple case insensitive text
2018-02-04 21:59:33 +00:00
James Booth
e571ccd8ea
Fix tests, move glob creation
2018-01-27 23:51:03 +00:00
James Booth
f189dbc687
Only send ping requests to client that support it
2017-06-16 00:59:21 +01:00
James Booth
970ab94ed3
Change server name in functional tests
2017-06-15 23:30:39 +01:00
James Booth
6511d61b13
Show message when server does not support ping
2017-06-15 23:27:30 +01:00
James Booth
d52355d72c
Set locale in unit tests
...
issue #901
2017-04-29 20:33:28 +01:00
James Booth
6b830277a6
Allow previous autocompletion with shift tab
2017-04-01 00:27:11 +01:00
James Booth
1b9d033cef
Add test for case insensitive autocomplete
2017-03-25 20:46:31 +00:00
James Booth
b5e0106526
Autocomplete accent and case insensitive
2017-03-25 01:40:20 +00:00
James Booth
286fecf38d
Allow installing plugins from directory
2017-02-05 21:09:03 +00:00
James Booth
68a3daedb9
Update Copyright
2017-01-28 17:24:22 +00:00
James Booth
6679b890a0
Fix multibyte chars in prof_occurrences
...
issue #901
2017-01-26 00:52:13 +00:00
James Booth
8e75437a7e
Add carbons from check
2017-01-23 22:25:36 +00:00
James Booth
9cfd17821c
Allow room display properies to be set by plugins
2017-01-20 23:26:14 +00:00
James Booth
c8874cd2e0
Allow chat prefix char to be set by plugins
2017-01-20 21:03:55 +00:00
James Booth
1b25aa84cb
Add titlebar encryption text to plugins api
2017-01-19 22:33:29 +00:00
James Booth
70e831e08b
Fix tests
2017-01-16 00:21:57 +00:00
James Booth
2b7894ccff
Remove status from cl_ev_presence_send
...
fixes #888
2017-01-15 23:59:31 +00:00
James Booth
e043029a50
Allow clearing account resource
...
issue #880
2016-11-22 00:39:52 +00:00
James Booth
609d05366c
Use server features for account muc service
...
issue #878
2016-11-20 02:09:34 +00:00
James Booth
333403d2e5
Remove ui_current_print_formatted_line
2016-10-16 22:13:49 +01:00
James Booth
769e71b17b
Remove ui_current_print_line
2016-10-16 21:45:48 +01:00
James Booth
f3aebd547c
Use varargs in win_println_indent
2016-10-15 21:05:26 +01:00
James Booth
711c5b8e45
Add win_appendln
2016-10-15 19:19:44 +01:00
James Booth
8f1d3ab55c
Add win_print
2016-10-15 18:29:02 +01:00
James Booth
3612270e90
Rename win_println -> win_println_indent
2016-10-15 17:23:02 +01:00
James Booth
5488fd6e72
Remove win_vprintln_ch
2016-10-15 17:17:17 +01:00
James Booth
478c749ff9
Remove ui_current_error_line
2016-10-15 17:08:29 +01:00
James Booth
9d075c9805
Remove ui_win_error_line
2016-10-15 17:07:15 +01:00
James Booth
6ed04d87b3
Rename win_get_string -> win_to_string
2016-10-15 16:41:37 +01:00
James Booth
33b4b79f2e
Add ch arg to win_printf_line
2016-10-15 00:04:57 +01:00
James Booth
97898ee082
Add win_printf_line
2016-10-12 00:14:55 +01:00
James Booth
0890179fc4
Remove win_print, use win_printf instead
2016-10-11 23:38:59 +01:00
James Booth
0337c5b22c
Rename win_vprint -> win_printf
2016-10-11 23:10:48 +01:00
James Booth
c40660b0d8
Use current room for /bookmark add and /bookmark remove
2016-10-05 00:52:57 +01:00
James Booth
388a20813c
Tests: disable occupants panel in functional tests
2016-09-26 00:39:37 +01:00
James Booth
e78684f689
Tests: longer timeout for failing functional test on travis
2016-09-26 00:16:12 +01:00
James Booth
da437642a5
Merge branch 'master' into win-order
2016-09-25 23:32:15 +01:00
James Booth
a48df40138
Fix assertion errors in unit tests
2016-09-25 23:30:44 +01:00
James Booth
d3cc5bd7ed
Allow vertical positioning of all windows
2016-09-23 00:56:53 +01:00
James Booth
3983ee1d6b
Rename /titlebar -> /wintitle
2016-09-22 21:42:00 +01:00
James Booth
0aa758cbfb
Add /inputwin top|bottom command
...
closes #853
2016-09-19 23:40:45 +01:00
James Booth
ea98a8b04a
Rename Bookmark->jid to Bookmark->barejid
2016-08-28 22:12:50 +01:00
James Booth
fca59a3110
log_info on private carbons
2016-08-28 17:27:26 +01:00
James Booth
0886062806
Use hash table for bookmarks
2016-08-21 15:25:49 +01:00
James Booth
a978bb12bf
Send receipt request only when receiver supports feature
...
issue #829
2016-08-18 22:53:23 +01:00
James Booth
4de570b1ee
Only include receipts feature in disco responses when enabled
...
issue #829
2016-08-18 00:10:15 +01:00
James Booth
9945246a64
Use hashtables for plugin disco features
2016-08-17 23:21:48 +01:00
James Booth
80eb5bee90
Rename Capabilties -> EntityCapabilities
2016-08-13 16:39:25 +01:00
James Booth
a3a73cf003
Move all filepath handling to files.c
2016-07-24 21:49:35 +01:00
James Booth
29452f8f1b
Move xgd functions
2016-07-24 17:12:09 +01:00
James Booth
6cc4abedc5
Move window functions to window_list.c
2016-07-24 17:02:09 +01:00
James Booth
e7bfaa643f
Move autoaway check
2016-07-24 16:06:24 +01:00
James Booth
5bc38b6bc2
Moved window_list.c
2016-07-24 15:14:46 +01:00
James Booth
90b9b48ab9
Moved roster_list.c
2016-07-24 15:08:47 +01:00
James Booth
2af0d38e3d
Moved muc.c
2016-07-24 15:02:43 +01:00
James Booth
1c5efaeb58
Moved jid.c
2016-07-24 14:59:28 +01:00
James Booth
c23506f453
Moved contact.c
2016-07-24 14:55:32 +01:00
James Booth
25a6252a28
Moved chat_session.c
2016-07-24 14:23:55 +01:00
James Booth
0649aad80d
Move event timeout to connection module
2016-07-24 14:08:30 +01:00
James Booth
5f393a6d9f
Remove plugin window on /close
2016-07-12 02:16:12 +01:00
James Booth
3fe1d76a05
Unit test for callback_add_command()
2016-07-04 21:10:11 +01:00
James Booth
71879a3f64
Free plugins commands on quit
2016-07-04 00:41:29 +01:00
James Booth
29eb843d56
Revert "WIP - Unload plugin commands"
...
This reverts commit a01eb5d08e
.
2016-06-30 22:37:52 +01:00
James Booth
a01eb5d08e
WIP - Unload plugin commands
2016-06-29 23:35:57 +01:00
James Booth
383e601f25
Move /statuses options to /presence command
2016-05-31 23:21:19 +01:00
James Booth
6559263b2f
Option to bookmark room invites
...
issue #813
2016-05-23 23:53:44 +01:00
James Booth
fb34785566
Rename command sources
2016-05-22 23:59:52 +01:00
James Booth
eaf2901b01
Add cmd_autocomplete.c
2016-05-20 00:19:03 +01:00
James Booth
3d20c85ada
Remove JABBER_STARTED, JABBER_UNDEFINED connection states
2016-05-10 23:18:11 +01:00
James Booth
6ce8edc194
Move disco info struct to connection
2016-05-07 23:28:16 +01:00
James Booth
81e95966cf
Remove redundant tls secured function
2016-05-06 02:18:31 +01:00
James Booth
579d062063
Move send stanza function
2016-05-06 01:51:58 +01:00
James Booth
b6c4a2029f
Move conn is secure function
2016-05-06 01:49:27 +01:00
James Booth
8950dbb768
Move tls peer cert function
2016-05-06 01:47:19 +01:00
James Booth
31b0f0b0c8
Move uuid functions
2016-05-06 01:16:13 +01:00
James Booth
d1c71e98f4
Move connection fulljid function
2016-05-06 01:12:54 +01:00
James Booth
88f423afea
Rename jabber_ functions
2016-05-06 00:53:03 +01:00
James Booth
3bb1f12410
Add session.c
2016-05-05 23:51:49 +01:00
James Booth
ccabc08fef
Tidy xmpp headers
2016-05-04 01:19:51 +01:00
James Booth
b8c94376aa
Add /blocked command
2016-05-01 19:39:39 +01:00
James Booth
c31913f8d5
Fixed test stubs
2016-05-01 01:27:37 +01:00
James Booth
623fbe9e47
Plugins: Added prof_disco_add_feature()
2016-04-30 23:00:07 +01:00
James Booth
a718e6f91b
Refactored /account set commands
2016-04-28 01:13:42 +01:00
James Booth
38652efb19
Fixed tests
2016-04-27 00:30:33 +01:00
James Booth
fcf486d6b2
Added include to fix tests
2016-04-26 23:50:55 +02:00
James Booth
167553ae8f
Fixed functional test ID based stubs
2016-04-26 23:50:55 +02:00
Dominik Heidler
1b0ce852bb
Implement XEP-0363: HTTP File Upload
2016-04-26 23:50:55 +02:00
James Booth
2daa02cb60
Merge remote-tracking branch 'asdil12/tray_config'
2016-04-17 23:17:43 +01:00
James Booth
f243e333fc
Added whole word matches for room mention
2016-04-07 01:01:27 +01:00
James Booth
d9344b00fe
Added prof_strstr function
2016-04-03 22:30:24 +01:00
James Booth
9b177a9e01
Removed #AX_PREFIX_CONFIG_H
2016-03-31 21:05:02 +01:00
James Booth
4c913aa08b
Added prof_send_stanza to plugins API
2016-03-23 22:57:03 +00:00
James Booth
6f537c3818
Add PGP decryption for incoming/outgoing carbons
2016-03-22 00:20:29 +00:00
James Booth
639623d625
Tidied cons_show_help
2016-02-18 20:52:52 +00:00
James Booth
a14b7815ae
Added new help format to c plugins WIP
2016-02-18 01:20:37 +00:00
James Booth
41fe8c22b1
Added C plugin code from plugins branch
2016-02-14 22:28:55 +00:00
James Booth
1a3dc91e11
Highlight room trigger terms
2016-02-13 22:46:25 +00:00
James Booth
62b0cdd8fd
Fix room notification reminders
2016-02-07 01:15:40 +00:00
James Booth
19a3066e28
Implemented /console chat setting
2016-02-03 23:16:42 +00:00
James Booth
72574bb944
Fixed tests
2016-02-03 00:13:49 +00:00
James Booth
3ddef99dfe
Handle occupant kicked/banned in private chat wins
2016-02-02 22:25:55 +00:00
James Booth
e816b124ee
Removed unused arg from roster_get_ functions
2016-01-31 02:33:44 +00:00
James Booth
7c1db22fac
Fixed assertion errors in tests
2016-01-30 22:49:44 +00:00
James Booth
b6e9a09c64
Show console messages for room mention and triggers
...
closes #719
2016-01-24 23:47:17 +00:00
James Booth
6281196809
Fixed tests
2016-01-24 23:08:29 +00:00
James Booth
53fc89f711
Added account theme property
2016-01-22 01:06:28 +00:00
James Booth
adb470c454
WIP: Add /theme properties command
2016-01-21 00:50:55 +00:00
James Booth
393e690165
Merge branch 'master' into roster-struct
2016-01-05 01:38:31 +00:00
James Booth
e1e0fda8b3
Call UI disconnect functions before disconnecting with /disconnect
...
fixes #703
2016-01-05 01:30:32 +00:00
James Booth
055a5f71ce
Added roster struct, create and destroy roster on connect/disconnect
2016-01-05 00:06:50 +00:00
James Booth
94b0d2c6da
Added hardcoded autoping timeout
2015-12-31 01:48:04 +00:00
James Booth
69ac809776
Added functional tests for /console command
2015-12-30 00:32:52 +00:00
James Booth
7f98e013e1
Use single quotes in functional test stanzas
2015-12-30 00:12:24 +00:00
James Booth
6a8656a06b
Added /console command
2015-12-29 23:32:32 +00:00
James Booth
377a63d038
Uncommented functional tests
2015-12-22 00:45:15 +00:00
James Booth
6303e0e25a
Added chat message functional tests
2015-12-22 00:27:37 +00:00
James Booth
d9f5a2bda6
Updated console new message text
2015-12-20 23:26:05 +00:00
James Booth
1b88b5706e
Change console incoming message text to include "win"
2015-12-20 22:50:03 +00:00
James Booth
94169705b5
Added functional test for muc console message
2015-12-20 03:11:02 +00:00
James Booth
9f34373b46
Disable muc notifications for functional tests
2015-12-20 02:57:01 +00:00
James Booth
c61e9d80ea
Added more muc functional tests
2015-12-20 02:42:11 +00:00
James Booth
46a0e6ebed
Removed whitespace
2015-12-20 02:17:17 +00:00
James Booth
87b4d7cbab
Added muc functional tests
2015-12-20 02:13:01 +00:00
James Booth
1f56c12377
Added cons_show_incoming_room_message()
2015-12-20 00:54:17 +00:00
James Booth
88fd2a25ee
Show PGP error strings
2015-12-15 00:38:16 +00:00
James Booth
482eea4fcf
Moved sending of initial presence to sv_ev_roster_received
2015-12-14 23:57:06 +00:00
James Booth
0920b65ddf
Added /wins unread
2015-11-30 00:17:44 +00:00
James Booth
cadaf73148
Fixed functional tests
2015-11-29 00:16:00 +00:00
James Booth
d3389db233
Only show reminder notifications when notifications are enabled
2015-11-25 22:33:26 +00:00
James Booth
9c8b137a51
Tidy regular chat and room notifications
2015-11-24 23:03:52 +00:00
James Booth
bf1e7efe23
Show summary of trusted certificates, add /tls cert <fingerprint>
...
fixes #676
2015-11-22 19:53:41 +00:00
James Booth
548f9394be
Removed unused priority settings
2015-11-20 00:18:13 +00:00
James Booth
4efe456e74
Pass offline filter to roster_get_contacts
2015-11-18 01:03:35 +00:00
James Booth
2260e3bd6f
Pass ordering to roster list functions
2015-11-18 00:06:00 +00:00
James Booth
c60060fe5a
Added more group tests
2015-11-14 22:21:57 +00:00
James Booth
c4a1d69a0c
Keep count of group members
2015-11-12 00:46:42 +00:00
James Booth
efb732e3c1
Fixed tests
2015-11-10 01:23:27 +00:00
James Booth
60215cdf9d
Renamed MUC private window functions
2015-11-08 22:08:29 +00:00
James Booth
8a397263dd
ui_incoming_private_msg takes ProfPrivateWin, added asserts
2015-11-08 22:01:51 +00:00
James Booth
9fcdc5901c
Removed ui_new_private_win
2015-11-05 23:28:21 +00:00
James Booth
38255e9be4
Make all mucconfwin functions take ProfMucConfWin
2015-11-02 22:19:01 +00:00
James Booth
a3e9178ea2
Renamed mucconfwin functions
2015-11-02 22:05:17 +00:00
James Booth
eece15d92c
Removed ui_statusbar_new
2015-11-02 21:24:12 +00:00
James Booth
022d20bbdc
Removed ui_clear_win
2015-11-02 21:21:52 +00:00
James Booth
84adec83f9
Removed ui_unread
2015-11-02 21:14:55 +00:00
James Booth
7f5b563a81
Removed ui_handle_room_join_error
2015-11-02 21:11:47 +00:00
James Booth
2089eebf09
Removed ui_win_type
2015-11-02 21:07:04 +00:00
James Booth
bcd19c6d16
Removed ui_swap_wins
2015-11-02 21:05:21 +00:00
James Booth
df5b93987f
Removed ui_tidy_wins
2015-11-02 21:03:30 +00:00
James Booth
75bce88b8a
Renamed ui_switch_win -> ui_focus_win
2015-11-02 20:59:36 +00:00
James Booth
14a81fbbbe
Removed ui_handle_recipient_not_found
2015-11-02 20:46:52 +00:00
James Booth
2ea0e1e938
Removed ui_titlebar_presence
2015-11-02 20:39:43 +00:00
James Booth
1c3eadbf1c
Removed ui_get_chat_recipients
2015-11-02 20:35:01 +00:00
James Booth
6779c5bf68
mucwin_hide_occupants takes ProfMucWin
2015-11-02 01:01:37 +00:00
James Booth
668f92ece2
mucwin_show_occupants takes ProfMucWin
2015-11-02 00:59:27 +00:00
James Booth
ce0763e160
mucwin_update_occupants takes ProfMucWin
2015-11-02 00:57:13 +00:00
James Booth
1602011e01
mucwin_role_set_error takes ProfMucWin
2015-11-02 00:52:50 +00:00
James Booth
982bc8e066
mucwin_affiliation_set_error takes ProfMucWin
2015-11-02 00:51:12 +00:00
James Booth
7bedb6c294
mucwin_handle_role_list takes ProfMucWin
2015-11-02 00:47:43 +00:00