Michael Vetter
e745b4af60
tests: add publish_user_mood stub
2021-12-06 13:33:21 +01:00
Michael Vetter
ab5ee11c66
tests: Add win_get_last_sent_messag() stub
2021-10-22 12:40:34 +02:00
Michael Vetter
46c8245af9
Format new register code correctly
2021-10-13 21:32:44 +02:00
Michael Vetter
aedef61c91
registration: add test stub
2021-10-13 21:19:54 +02:00
Michael Vetter
f21595597f
Format code correctly
2021-10-05 10:01:27 +02:00
a1346054
c7d5379d24
Fix: files missing final ending newline
2021-08-26 00:28:49 +00:00
Michael Vetter
2386878c76
Add silence test stub
2021-07-01 18:07:26 +02:00
Michael Vetter
226cffe75b
Merge pull request #1569 from profanity-im/feature/1434-spam-reporting
...
Add XEP-0377: Spam Reporting
2021-07-01 17:04:04 +02:00
Thorben Günther
0fc3343d75
Restore last status string when connecting
2021-07-01 16:08:00 +02:00
Michael Vetter
2f533c5da4
Adjust test stub of blocking command
2021-07-01 10:38:38 +02:00
Michael Vetter
aae252e1b5
Merge pull request #1529 from dustinlagoy/access-roster-from-plugins
...
Access roster from plugins
2021-07-01 09:41:07 +02:00
Dustin Lagoy
e4bf7335d8
Add unit tests for roster_get_display_name
2021-06-30 18:58:07 -04:00
Michael Vetter
8ef35290bd
Add command to show single bookmark details
...
`/bookmark list` lists all bookmarks with its details.
`/bookmark list <jid>` shows the details of a single bookmark.
Implement https://github.com/profanity-im/profanity/issues/1558
2021-06-09 15:53:21 +02:00
DebXWoody
b9af7152f9
attention-flag - unittest - stub_ui
2021-05-29 21:17:12 +02:00
DebXWoody
9974c68ee8
Display OMEMO device ID
...
Display the OMEMO device ID which has been generated, when the user generated
OMEMO crytographic materials via /omemo gen.
2021-05-28 17:57:42 +02:00
Michael Vetter
fde0a0d1c6
Add support to register with a room
...
`/affiliation register` can now be used to register a nickname with a
MUC.
Tested with a server without forms. Couldn't find a server which
supports forms yet.
Implements https://github.com/profanity-im/profanity/issues/1210
2021-03-25 11:05:58 +01:00
Thorben Günther
ec6f9df486
MUC: Add voice request
...
closes https://github.com/profanity-im/profanity/issues/1211
2021-03-12 14:57:00 +01:00
Thorben Günther
b0aea2bcff
Add command to change password of logged in user
2021-03-11 17:42:53 +01:00
Thorben Günther
71236a0d5a
Update ui_ask_password to support confirmation
...
Just prints a different string to console.
Useful for changing passwords or account registration.
2021-03-11 14:40:17 +01:00
Michael Vetter
971e08b474
Add mam test stub
2021-01-28 15:39:11 +01:00
Michael Vetter
1038b97a7d
Fix old chlog reference in help
...
Fixes https://github.com/profanity-im/profanity/issues/1470
2021-01-17 11:31:05 +01:00
Michael Vetter
57666bcb77
Remove log_reinit()
...
Not needed anymore.
2020-12-11 11:18:24 +01:00
William Wennerström
867d895469
Add tests for format_call_external_argv
2020-12-07 16:16:15 +01:00
William Wennerström
ac03037847
Rework url to filename
2020-12-06 17:02:09 +01:00
William Wennerström
1d2c0a8836
Move unique_filename_from_url functions to common
2020-12-04 16:13:13 +01:00
William Wennerström
1bb6cecee6
Fix stubs and move some tests to http_common
2020-11-16 21:58:10 +01:00
William Wennerström
be62b446f7
Add stubs
2020-11-16 21:58:10 +01:00
William Wennerström
4711fc62a3
Run make format on rebase
2020-11-16 21:58:09 +01:00
William Wennerström
a0cf0844ab
Remove unsafe Conent-Disposition inferring
2020-11-16 21:58:09 +01:00
William Wennerström
eebf54c859
Infer filename from content-disposition or URL
...
The Content-Disposition inferring is probably a bad idea security wise,
so I am going to remove it.
2020-11-16 21:58:09 +01:00
William Wennerström
f4ab1ca9e7
Move file encryption function to public header
2020-11-16 21:58:08 +01:00
William Wennerström
3370418d71
Initial /sendfile OMEMO encryption
2020-11-16 21:58:07 +01:00
Michael Vetter
90c4667e3b
Remove non existent functions
2020-11-02 18:50:19 +01:00
Michael Vetter
10d771f3d1
Merge branch 'master' of github.com:profanity-im/profanity
2020-07-10 13:46:06 +02:00
DebXWoody
0552e50c78
OX: XEP-0373: OpenPGP for XMPP - Version 0.5.0 (2020-06-19)
...
Discovering Public Keys via PEP
* 4.3 Discovering Public Keys of a User
* 4.4 Requesting Public Keys
* Import Public Keys into GnuPG's local keyring.
Issue: #1331
2020-07-10 13:40:00 +02:00
Michael Vetter
14a881697d
Adapt unittests
2020-07-09 16:13:28 +02:00
Michael Vetter
a2726b6a7d
Apply coding style
2020-07-07 14:18:57 +02:00
Michael Vetter
a4cadf78fa
Revert "Apply coding style"
...
This reverts commit 9b55f2dec0
.
Sorting the includes creates some problems.
2020-07-07 13:53:30 +02:00
Michael Vetter
9b55f2dec0
Apply coding style
...
Regards https://github.com/profanity-im/profanity/issues/1396
2020-07-07 09:43:28 +02:00
Michael Vetter
87ddb8081e
Tests: Add ox_announce_public_key stub
2020-07-06 15:03:13 +02:00
Michael Vetter
e5ac12afa6
Remove prefs_free_string()
...
It just does a free.
Related to b580b9ef11
2020-07-02 11:34:12 +02:00
Michael Vetter
60f4098846
Add OX test stubs
2020-06-29 21:21:16 +02:00
Dmitry Podgorny
ac410445af
Add option for legacy authentication
...
New options:
/connect <account> [auth default|legacy]
/account <account> set auth default|legacy
Fixes #1236 .
2020-06-05 11:37:51 +03:00
William Wennerström
05dde4bab4
Initialize ProfWin.urls_ac to NULL to fix OpenBSD build
2020-06-03 08:31:23 +02:00
Michael Vetter
ceb5dcc0e5
Fix clears_chat_sessions unittest
2020-05-28 16:09:32 +02:00
Michael Vetter
4b5711fad5
Add cons_show_bookmarks_ignore stub
2020-05-24 17:59:08 +02:00
Michael Vetter
70db2a4b63
Fix build on sr.ht
...
Hopefully fixing:
```
cc1: warnings being treated as errors
tests/unittests/test_cmd_otr.c: In function
'cmd_otr_start_sends_otr_query_message_to_current_recipeint':
tests/unittests/test_cmd_otr.c:422: warning: 'window.urls_ac' is used
uninitialized in this function
gmake[2]: *** [Makefile:1913: tests/unittests/test_cmd_otr.o] Error 1
gmake[2]: Leaving directory '/home/build/profanity'
gmake[1]: *** [Makefile:2442: check-am] Error 2
gmake[1]: Leaving directory '/home/build/profanity'
gmake: *** [Makefile:2445: check] Error 2
```
2020-05-22 14:41:42 +02:00
Michael Vetter
89fd9394aa
Update bookmark test stub
2020-05-22 14:36:36 +02:00
Michael Vetter
889e19a5c5
Add executable stub
2020-05-20 14:17:05 +02:00
Michael Vetter
05db5226dd
Fix http_upload stub
2020-04-17 10:44:39 +02:00
Michael Vetter
7419d29451
Update database stub
2020-04-07 11:31:17 +02:00
Michael Vetter
0942d98c61
Remove chat_log_get_previous()
...
We now dont get the log files from the text files via chat_log_get_previous() anymore.
We use the sql backend via log_database_get_previous_chat().
So far it just has the same behaviour like chat_log_get_previous(),
except that in _chatwin_history() we don't pass the sender to
win_print_history() which should be fixed in a commit soon.
And log_database_get_previous_chat() can later easily be expanded to fix
https://github.com/profanity-im/profanity/issues/205 .
2020-04-06 14:42:52 +02:00
Michael Vetter
4cc8df5929
Add log_database_add_*() test stubs
2020-04-06 10:50:20 +02:00
Michael Vetter
6803fb5c3a
Fix message_send_private unittest stub
2020-04-06 10:50:20 +02:00
Michael Vetter
062c7b1a89
db: add database unit test stub
2020-04-06 10:50:20 +02:00
Michael Vetter
3c56b289ed
Add slashguard feature
...
New command `/slashguard` tries to protect against typing ` /quit` by
not allowing a slash in the first 4 characters.
2020-03-18 18:20:05 +01:00
Michael Vetter
0cc4ac5cbc
Add cons_avatar_setting to unit test stub
2020-03-10 07:17:54 +01:00
Michael Vetter
f055faf31c
Fix log test stub
2020-02-21 21:29:14 +01:00
Michael Vetter
4b1b035654
Fix test stub
...
Change done in eb2fbdba2e
2020-02-21 19:16:52 +01:00
Michael Vetter
1f8b1eb740
Allow utf8 symbols as omemo/pgp/otr indicator char
...
Fix https://github.com/profanity-im/profanity/issues/1264
2020-02-20 23:36:10 +01:00
Michael Vetter
8ee2cdadc8
Parse mentions and triggers in muc history if display is 'regular'
...
Fix https://github.com/profanity-im/profanity/issues/1261
2020-02-20 10:28:24 +01:00
William Wennerström
b267b065f5
Add builds.sr.ht CI for OpenBSD
...
* Add .builds/openbsd.yml for builds.sr.ht
* Update travis-build.sh -> ci-build.sh with OpenBSD case
* Fix libdl check in configure.ac (OpenBSD has libdl built-in)
* Fix some minor issues found when compiling on OpenBSD with GCC (e.g.
uninitialized variables)
2020-02-17 10:54:15 +01:00
Michael Vetter
ca3afa7e05
test: Init window.layout to make compiler happy
...
Fix tests/unittests/test_cmd_otr.c:415: warning: 'window.layout' is used
uninitialized in this function on openbsd (thanks optmzr)
2020-02-14 14:40:20 +01:00
Michael Vetter
c614cc288a
Fix tests
2020-02-14 10:17:07 +01:00
Michael Vetter
fb68d44264
xep-0308: adapt unit test stubs
2020-02-14 10:17:07 +01:00
Michael Vetter
83b61e5160
xep-0308: add cons_correction_setting stub to tests
2020-02-10 14:59:10 +01:00
Paul Fariello
137dc15bc8
Fix unittest build
2020-01-31 10:25:45 +01:00
Paul Fariello
a52e3ea1d8
Add context to autocomplete_with_func and use it for omemo trust command
...
Fix #1068
2020-01-31 10:07:08 +01:00
Michael Vetter
663aa09cce
Add cons_os_setting stub for tests
2020-01-24 21:26:40 +01:00
Paul Fariello
84506cbaeb
Use OMEMO for offline MUC members ( #1242 )
2020-01-20 14:28:13 +01:00
Michael Vetter
9ac72980d1
xep-0084: add test stub file
2019-12-18 15:44:59 +01:00
Michael Vetter
136f504d5e
test: add cons_color_setting
2019-12-09 16:18:51 +01:00
Michael Vetter
750355acc4
Add cons_logging_setting() to test stub
2019-11-13 09:36:29 +01:00
Michael Vetter
b9734c8496
Add cons_titlebar_setting stub
...
and remove encwarn one.
2019-11-05 22:10:51 +01:00
Michael Vetter
f71de61b9d
Don't override ProfMessage Id with origin-id
...
Profanity sends the same value for both. Other clients might not.
Safe both since we could need them later.
Once we implement Last Message Correction we will need the regular id.
If we override it with origin-id and another client chooses to not use
the same value for id and origin-id then we can't interpret the id sent
with the LMC request correctly.
2019-10-31 13:45:44 +01:00
Michael Vetter
6bfdc5422c
Adjust message stubs in unit tests
2019-10-29 11:55:27 +01:00
Michael Vetter
8764e59650
Adjust stub for connection_get_profanity_identifier
2019-10-22 14:24:07 +02:00
Michael Vetter
c3912df05b
Move ProfMessage and message_is_sent_by_us to xmpp
...
Not meant for internal usage only.
2019-10-19 06:36:47 +02:00
Michael Vetter
72bdae1014
Add message_is_sent_by_us stub
2019-10-18 14:53:06 +02:00
Michael Vetter
3bd5c9f535
Remove accidentally added file
2019-10-18 12:24:34 +02:00
Michael Vetter
5c6f5ba0f7
Add connection_get_profanity_identifier stub
...
And move defintion to xmpp.h
2019-10-18 11:23:30 +02:00
Dmitry Podgorny
0499c4e0ee
Fix memory leak in unittests
2019-10-14 00:23:02 +03:00
Michael Vetter
8e5dafdea5
Fix invalid reads in unit tests
2019-10-10 19:02:23 +02:00
Michael Vetter
2559ad5370
Revert "Free lits in test_cmd_roster unittest"
...
This reverts commit 5b19ed28ce
.
This caused a segfault.
2019-10-10 18:08:24 +02:00
Michael Vetter
a10ab4e692
First destroy roster then free list in test_cmd_roster
2019-10-06 19:13:45 +02:00
Michael Vetter
98676613fd
Free strings in test_cmd_alias
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:45:53 +02:00
Michael Vetter
5b19ed28ce
Free lits in test_cmd_roster unittest
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:43:27 +02:00
Michael Vetter
1d23d6461d
Remove not needed strdupin test_cmd_rooms
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:40:51 +02:00
Michael Vetter
5349b60385
Free autocomplete_complete results in unittest
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:34:28 +02:00
Michael Vetter
2526e396f8
Fix autocomplete memleak in test_autocomplete
...
autocomplete_free() calls autocomplete_clear() and then frees the struct
itself.
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:26:34 +02:00
Michael Vetter
700f97d78c
Free lists in test_roster_list
...
Fix memleaks.
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:06:30 +02:00
Michael Vetter
9e6bc99d08
Fix two memleaks in test_parser
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:59:46 +02:00
Michael Vetter
1fabb61b40
Fix memleak in cmd_bookmark_list_shows_bookmarks unittest
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:54:40 +02:00
Michael Vetter
6776e39644
Fix memleak in test_parser unittest
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:50:29 +02:00
Michael Vetter
d2a087145c
Fix memleak in test_callbacks unittest
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:47:13 +02:00
Michael Vetter
4f11140bb5
Fix memleak in test_parser unittest
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:43:10 +02:00
Michael Vetter
81b537b36d
Fix test_callbacks memleak
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:15:06 +02:00
Michael Vetter
ae9ef75bab
Fix test_jid unittest memleak
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:07:00 +02:00
Michael Vetter
fd18230cd4
Fix unittest memleak in test_cmd_join
...
muc_init() call without muc_close()
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-05 23:38:10 +02:00
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