about summary refs log tree commit diff stats
path: root/src/common.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1011 from jubalh/sha1Michael Vetter2018-09-191-17/+0
|\ | | | | Get rid of p_sha1 dependency
| * Move p_sha1_hash() to stanza.cMichael Vetter2018-09-061-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Use libstrophe sha1 functionsMichael Vetter2018-09-051-10/+9
| | | | | | | | | | | | | | Using libstrophes sha1 functions in p_sha1_hash() to get rid of the p_sha1.c dependency. Relates to https://github.com/boothj5/profanity/issues/882
* | Fix extended plugin handling PRPhilip Flohr2018-09-061-10/+4
| | | | | | | | Fixes problems found in PR #999
* | use gio functions for file copyPhilip Flohr2018-09-061-20/+15
|/
* Move ID generation to xmpp folderMichael Vetter2018-08-301-22/+0
| | | | | | | | | | | create_unique_id() was changed to use UUIDs instead of a counter in the last commit. Since now it depends on connection_create_uuid() which is in the xmpp subfolder the function should also be moved there. Renamed it to connection_create_stanza_id() and moved it to src/xmpp/connection.c. Discussion happened in https://github.com/boothj5/profanity/pull/1010
* Use uuid in create_unique_id instead of counterMichael Vetter2018-08-141-11/+7
| | | | | | | | | | | | Message IDs should be unique so they can be used by XEPs like delivery receipts, chat markers, message correction. So far it used a counter so restarting profanity will cause the counter to be 0 again. Let's rather use an UUID since we have such a function in the xmpp/xmpp.h already. Closes https://github.com/boothj5/profanity/issues/998
* Update copyrightJames Booth2018-01-211-1/+1
|
* Set locale in unit testsJames Booth2017-04-291-2/+2
| | | | issue #901
* Use g_utf8_find_ functions for prof_occurrencesJames Booth2017-04-281-4/+11
| | | | issue #901
* Update Glib dependency to 2.40James Booth2017-03-251-48/+0
|
* Allow installing plugins from directoryJames Booth2017-02-051-0/+42
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Fix multibyte chars in prof_occurrencesJames Booth2017-01-261-8/+14
| | | | issue #901
* Move window functions to window_list.cJames Booth2016-07-241-73/+0
|
* Move resource conversionsJames Booth2016-07-241-70/+1
|
* Add config/files.cJames Booth2016-07-241-38/+0
|
* Tidy headersJames Booth2016-07-241-3/+1
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Add /plugins install commandJames Booth2016-07-121-0/+26
|
* Reorder headers in common.cJames Booth2016-05-111-1/+1
| | | | Fixes unknown type name '_fpos64_t' error on Cygwin
* Added whole word matches for room mentionJames Booth2016-04-071-49/+18
|
* Added prof_strstr functionJames Booth2016-04-031-12/+60
|
* Removed #AX_PREFIX_CONFIG_HJames Booth2016-03-311-7/+7
|
* Fixed PLATFORM_CYGWIN referencesJames Booth2016-03-101-1/+1
|
* Merge branch 'master' into plugins-cJames Booth2016-02-141-1/+1
|\ | | | | | | | | | | Conflicts: src/main.c src/ui/console.c
| * Updated copyrightJames Booth2016-02-141-1/+1
| |
* | Added C plugin code from plugins branchJames Booth2016-02-141-4/+10
|/
* Added sys/select.h header includesJames Booth2016-01-191-0/+1
|
* Applied coding style to src/James Booth2015-10-261-17/+17
|
* Create is_notify_enabled functionMichael Vetter2015-10-121-0/+18
| | | | | The same code was used on two different occasions. I put it into a function.
* Split PGP incoming and outgoing message handlingJames Booth2015-08-301-0/+6
|
* Fixed OTR decryption checkJames Booth2015-08-271-1/+1
|
* Added str_contains_str to commonJames Booth2015-08-261-0/+6
|
* I removed ncurses header dependencies, removed unused codeJames Booth2015-06-151-12/+0
|
* Added more connect testsJames Booth2015-05-241-1/+8
|
* Use null check convention in common.cJames Booth2015-05-041-10/+10
|
* Moved _strtoi to common, strtoi_rangeJames Booth2015-03-161-0/+27
|
* Merge branch 'master' into readlineJames Booth2015-02-111-1/+1
|\ | | | | | | | | | | Conflicts: src/tools/history.c src/tools/history.h
| * Updated copyrightJames Booth2015-02-101-1/+1
| |
* | Merge branch 'master' into readlineJames Booth2015-02-101-2/+12
|\| | | | | | | | | Conflicts: src/ui/inputwin.c
| * Copy list when sorting windows for /winsJames Booth2015-02-101-2/+12
| |
* | Merge branch 'master' into readlineJames Booth2015-02-081-0/+22
|\|
| * Moved quote stripper to common, added testsJames Booth2015-02-081-0/+22
| |
* | Refactor inputwin.cJames Booth2015-01-181-0/+12
|/
* Added utf8_display_lenJames Booth2015-01-171-0/+22
|
* Simplified autocompleters and command historyJames Booth2015-01-161-1/+1
|
* fgets: buffer sizePeter Vilim2015-01-071-3/+0
|
* Follow symlinks for profrc and accounts filesJames Booth2014-10-261-0/+25
|
* Added license exemption for OpenSSL to source headersJames Booth2014-08-241-0/+12
|