about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge pull request #1383 from profanity-im/cleanup/messagecMichael Vetter2020-07-041-116/+73
|\ \ \ \ | | | | | | | | | | Cleanup carbons/chat handling in message.c
| * | | | message.c: Use message->to_jid instead of to_jidMichael Vetter2020-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | This one will always be set.
| * | | | message.c: _handle_carbons() check from field outside of functionMichael Vetter2020-07-031-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | So that we don't have to pass the wrapping stanza and can handle the error nicer.
| * | | | message.c: Dont duplicate code in _handle_carbon and _handle_chatMichael Vetter2020-07-031-111/+66
|/ / / / | | | | | | | | | | | | | | | | Trying to simplify the conditions so we don't have duplicate code in both of those functions.
* | | | message.c: Remove from/to setting out of conditionMichael Vetter2020-07-031-6/+3
| | | | | | | | | | | | | | | | Since its done in both cases.
* | | | message.c: Small code improvementsMichael Vetter2020-07-031-16/+16
| | | |
* | | | message.c: Put XEP-0085 code in helper functionMichael Vetter2020-07-031-18/+25
| | | |
* | | | Change formattingMichael Vetter2020-07-031-1/+2
| | | |
* | | | handle_headline(): Free text correctlyMichael Vetter2020-07-031-0/+2
| | | |
* | | | Handle headline stanzaStefan Kropp2020-07-031-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Authored by DebXWoody in: https://github.com/profanity-im/profanity/pull/1369 Regards: https://github.com/profanity-im/profanity/issues/1366 Since I'm in the process of cleaning up message.c I take this now so he doesn't have to rebase. I also omitted the _handle_normal() case since I'm not sure that would be correct. Probably will be addressed again when continuing the cleanup.
* | | | Merge pull request #1382 from wstrm/fix-missing-omut-flagMichael Vetter2020-07-021-1/+1
|\ \ \ \ | | | | | | | | | | Add missing -o flag for omut example
| * | | | Add missing -o flag for omut exampleWilliam Wennerström2020-07-021-1/+1
|/ / / /
* | | | Merge pull request #1381 from wstrm/fix-no-messageMichael Vetter2020-07-021-1/+0
|\ \ \ \ | |_|_|/ |/| | | Fix messages with receipt request not displayed
| * | | Fix messages with receipt request not displayedWilliam Wennerström2020-07-021-1/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | Messages from Conversations contains: <request xmlns='urn:xmpp:receipts'/> And would not be displayed in Profanity as it never reached _handle_chat(..).
* | | message.c: Put plugin handler code in helper functionMichael Vetter2020-07-021-7/+14
| | |
* | | message.c: Log invalid message typeMichael Vetter2020-07-021-14/+14
| | | | | | | | | | | | | | | So far we logged when we receive a message without a type. Which is actually quite common and makes no sense.
* | | message.c: Check for message typeMichael Vetter2020-07-022-8/+5
| | | | | | | | | | | | | | | RFC 6121 allows only few types. So we can also remove that check in _handle_chat().
* | | message.c: Remove handled cases form _handle_chat()Michael Vetter2020-07-021-7/+0
| | | | | | | | | | | | Both cases are tested before entering that function.
* | | message.c: Break out of _message_handler() after handling codeMichael Vetter2020-07-021-0/+4
| | | | | | | | | | | | | | | AFAIK it can only be one. Except at STANZA_NS_MUC_USER which is used in several cases.
* | | Add HEADLINE stanza defineMichael Vetter2020-07-021-0/+1
| | |
* | | message.c: Parse incoming message stanzas according to typeMichael Vetter2020-07-021-31/+34
| | |
* | | message.c: Add pubsub helper functionMichael Vetter2020-07-021-13/+19
| | |
* | | message.c: Add XEP informationMichael Vetter2020-07-021-1/+6
| | |
* | | message.c: Add my copyrightMichael Vetter2020-07-021-0/+1
| | |
* | | message.c: Make several functions staticMichael Vetter2020-07-021-3/+3
| | |
* | | message.c: Adjust function formattingMichael Vetter2020-07-021-8/+12
| | |
* | | gpg.c: _ox_key_is_usable() simplify if conditionMichael Vetter2020-07-021-3/+3
| | |
* | | gpg.c: Format new ox function headsMichael Vetter2020-07-021-7/+26
| | |
* | | log.c: Format codeMichael Vetter2020-07-021-7/+9
| | |
* | | cmd_funcs.c: Remove not needed variableMichael Vetter2020-07-021-2/+1
| | |
* | | log.c: Use gchar* instead of GString for mainlogfileMichael Vetter2020-07-021-10/+9
| | |
* | | get_mentions() Use gchar instead of charMichael Vetter2020-07-021-2/+2
| | |
* | | Remove prefs_free_string()Michael Vetter2020-07-0219-145/+138
| | | | | | | | | | | | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* | | Merge pull request #1374 from profanity-im/revampUrlopenMichael Vetter2020-07-028-52/+426
|\ \ \ | |/ / |/| | Rework /url and /executable for filetypes
| * | Add note that /executable needs more workMichael Vetter2020-07-021-0/+2
| | |
| * | Transform url.open.cmd to new default schemeMichael Vetter2020-07-021-1/+1
| | | | | | | | | | | | | | | | | | Additionally to: 7de83217c4d7bfdb70b77f2baeb8f12d4147d873 1e2a288d80fe0200f1d44d5106f7cc5bfd77718b
| * | executable: actually take the user set default if a certain scheme isMichael Vetter2020-07-021-6/+11
| | | | | | | | | | | | not found
| * | executable: Use DEF instead of * as defaultMichael Vetter2020-07-021-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far: ``` /executable urlsave html "test %u" results in url.save.cmd[html]=test %u /executable urlsave * "test %u" results in nothing. ``` Probably due to limitation in .ini file format.
| * | cmd_url_*(): use gchar instead of charMichael Vetter2020-07-024-6/+6
| | |
| * | Use correct format when transforming old urlopen.cmdMichael Vetter2020-07-021-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally to ec7e635e752bdfef851fd177596c1d73d97afb42. In the earlier commit I just setted the test value ignoring the real format. Now we correctly transform: ``` [logging] urlopen.cmd=xdg-open ``` into: ``` [executables] url.open.cmd=false;xdg-open %u; ```
| * | cmd_url_open(): fix memleakMichael Vetter2020-07-021-0/+1
| | |
| * | use '*' to set a default executablePierre Mazière2020-07-022-15/+28
| | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * | fix examples for /executablePierre Mazière2020-07-021-2/+2
| | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * | cmd_url_*(): remove NULLing when not neededMichael Vetter2020-07-011-8/+4
| | |
| * | cmd_executable(): Check arg lengthsMichael Vetter2020-07-011-0/+10
| | |
| * | Adjust `/executable` test to be more preciseMichael Vetter2020-07-011-1/+1
| | |
| * | Move url/avatar commands from logging to exectuables sectionMichael Vetter2020-07-011-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | c56d530b67d09267eb46cba029217e4b84b32cef by peetah moves: urlopen.cmd from the 'logging' to a new 'executables' section in profrc avatar.cmd from the 'logging' to a new 'executables' section in profrc We need to adapt this so that users don't have to set the setting again themselves.
| * | console.c: Use prefs_free_string()Michael Vetter2020-07-011-1/+1
| | | | | | | | | | | | | | | f9961677aaa8d2713a80127f95a3770b33af4cef replaces prefs_free_string() with g_free(). Both is correct but lets still use this.
| * | prefs_free_string() doesnt need to check if pref is NULLMichael Vetter2020-07-011-4/+1
| | | | | | | | | | | | g_free(NULL); is noop.
| * | Display a message acknowledging file saving successPierre Mazière2020-06-251-0/+2
| | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>