Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | message.c: Dont duplicate code in _handle_carbon and _handle_chat | Michael Vetter | 2020-07-03 | 1 | -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 condition | Michael Vetter | 2020-07-03 | 1 | -6/+3 |
| | | | | Since its done in both cases. | ||||
* | message.c: Small code improvements | Michael Vetter | 2020-07-03 | 1 | -16/+16 |
| | |||||
* | message.c: Put XEP-0085 code in helper function | Michael Vetter | 2020-07-03 | 1 | -18/+25 |
| | |||||
* | Change formatting | Michael Vetter | 2020-07-03 | 1 | -1/+2 |
| | |||||
* | handle_headline(): Free text correctly | Michael Vetter | 2020-07-03 | 1 | -0/+2 |
| | |||||
* | Handle headline stanza | Stefan Kropp | 2020-07-03 | 1 | -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. | ||||
* | Add missing -o flag for omut example | William Wennerström | 2020-07-02 | 1 | -1/+1 |
| | |||||
* | Fix messages with receipt request not displayed | William Wennerström | 2020-07-02 | 1 | -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 function | Michael Vetter | 2020-07-02 | 1 | -7/+14 |
| | |||||
* | message.c: Log invalid message type | Michael Vetter | 2020-07-02 | 1 | -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 type | Michael Vetter | 2020-07-02 | 2 | -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 Vetter | 2020-07-02 | 1 | -7/+0 |
| | | | | Both cases are tested before entering that function. | ||||
* | message.c: Break out of _message_handler() after handling code | Michael Vetter | 2020-07-02 | 1 | -0/+4 |
| | | | | | AFAIK it can only be one. Except at STANZA_NS_MUC_USER which is used in several cases. | ||||
* | Add HEADLINE stanza define | Michael Vetter | 2020-07-02 | 1 | -0/+1 |
| | |||||
* | message.c: Parse incoming message stanzas according to type | Michael Vetter | 2020-07-02 | 1 | -31/+34 |
| | |||||
* | message.c: Add pubsub helper function | Michael Vetter | 2020-07-02 | 1 | -13/+19 |
| | |||||
* | message.c: Add XEP information | Michael Vetter | 2020-07-02 | 1 | -1/+6 |
| | |||||
* | message.c: Add my copyright | Michael Vetter | 2020-07-02 | 1 | -0/+1 |
| | |||||
* | message.c: Make several functions static | Michael Vetter | 2020-07-02 | 1 | -3/+3 |
| | |||||
* | message.c: Adjust function formatting | Michael Vetter | 2020-07-02 | 1 | -8/+12 |
| | |||||
* | gpg.c: _ox_key_is_usable() simplify if condition | Michael Vetter | 2020-07-02 | 1 | -3/+3 |
| | |||||
* | gpg.c: Format new ox function heads | Michael Vetter | 2020-07-02 | 1 | -7/+26 |
| | |||||
* | log.c: Format code | Michael Vetter | 2020-07-02 | 1 | -7/+9 |
| | |||||
* | cmd_funcs.c: Remove not needed variable | Michael Vetter | 2020-07-02 | 1 | -2/+1 |
| | |||||
* | log.c: Use gchar* instead of GString for mainlogfile | Michael Vetter | 2020-07-02 | 1 | -10/+9 |
| | |||||
* | get_mentions() Use gchar instead of char | Michael Vetter | 2020-07-02 | 1 | -2/+2 |
| | |||||
* | Remove prefs_free_string() | Michael Vetter | 2020-07-02 | 16 | -130/+123 |
| | | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef | ||||
* | Merge pull request #1374 from profanity-im/revampUrlopen | Michael Vetter | 2020-07-02 | 8 | -52/+426 |
|\ | | | | | Rework /url and /executable for filetypes | ||||
| * | Add note that /executable needs more work | Michael Vetter | 2020-07-02 | 1 | -0/+2 |
| | | |||||
| * | Transform url.open.cmd to new default scheme | Michael Vetter | 2020-07-02 | 1 | -1/+1 |
| | | | | | | | | | | | | Additionally to: 7de83217c4d7bfdb70b77f2baeb8f12d4147d873 1e2a288d80fe0200f1d44d5106f7cc5bfd77718b | ||||
| * | executable: actually take the user set default if a certain scheme is | Michael Vetter | 2020-07-02 | 1 | -6/+11 |
| | | | | | | | | not found | ||||
| * | executable: Use DEF instead of * as default | Michael Vetter | 2020-07-02 | 1 | -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 char | Michael Vetter | 2020-07-02 | 4 | -6/+6 |
| | | |||||
| * | Use correct format when transforming old urlopen.cmd | Michael Vetter | 2020-07-02 | 1 | -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 memleak | Michael Vetter | 2020-07-02 | 1 | -0/+1 |
| | | |||||
| * | use '*' to set a default executable | Pierre Mazière | 2020-07-02 | 2 | -15/+28 |
| | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> | ||||
| * | fix examples for /executable | Pierre Mazière | 2020-07-02 | 1 | -2/+2 |
| | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> | ||||
| * | cmd_url_*(): remove NULLing when not needed | Michael Vetter | 2020-07-01 | 1 | -8/+4 |
| | | |||||
| * | cmd_executable(): Check arg lengths | Michael Vetter | 2020-07-01 | 1 | -0/+10 |
| | | |||||
| * | Adjust `/executable` test to be more precise | Michael Vetter | 2020-07-01 | 1 | -1/+1 |
| | | |||||
| * | Move url/avatar commands from logging to exectuables section | Michael Vetter | 2020-07-01 | 1 | -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 Vetter | 2020-07-01 | 1 | -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 NULL | Michael Vetter | 2020-07-01 | 1 | -4/+1 |
| | | | | | | | | g_free(NULL); is noop. | ||||
| * | Display a message acknowledging file saving success | Pierre Mazière | 2020-06-25 | 1 | -0/+2 |
| | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> | ||||
| * | Display default value for /url associated commands | Pierre Mazière | 2020-06-25 | 1 | -5/+9 |
| | | | | | | | | | | | | | | | | | | | | The display of commands associated with specific file types and protocols will need to be implemented later, but this requires to use private data of the GKeyFile structure, which can be a maintainability issue on the long term. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> | ||||
| * | Add /url autocompletion | Pierre Mazière | 2020-06-25 | 1 | -4/+22 |
| | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> | ||||
| * | Replace /urlopen with /url and adapt /executable | Pierre Mazière | 2020-06-25 | 5 | -33/+249 |
| | | | | | | | | | | | | | | | | /urlopen is replaced by /url with the following sub commands: /url open <url> /url save <url> [<path>] Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> | ||||
| * | Add string and string list preferences with option | Pierre Mazière | 2020-06-25 | 2 | -1/+89 |
| | | | | | | | | | | | | | | | | | | | | | | | | Where GKeyFile usually use the pref[locale] format to define locale specific translated data, it is here hijacked to be used as pref[option] in order to specialize a preference according to an option: open.url.cmd[pdf] = pdf-viewer open.url.cmd[jpg] = image-viewer Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> | ||||
| * | Refactor cmd_urlopen | Pierre Mazière | 2020-06-25 | 1 | -16/+16 |
| | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com> |