| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Error log:
GLib-CRITICAL - g_string_insert_len: assertion 'len == 0 || val != NULL' failed
Check if a room name exists, before adding the name into the title bar.
|
|
|
|
| |
Regards https://github.com/profanity-im/profanity/issues/660
|
|
|
|
|
|
|
| |
Functions had some duplicate code:
* cons_show_incoming_room_message()
* cons_show_incoming_message()
* cons_show_incoming_private_message()
|
| |
|
|
|
|
| |
Input window size was one cell off, therefore terminal themes with background color set were rendered incorrectly, fixes #1458
|
|
|
|
| |
Remove added blank line after trackbar, introduced by 606c1e51e688cb111b9837579a35460508324b63
|
|
|
|
|
|
|
|
|
|
|
|
| |
It was added in f7fe87dd4e7e14112fbcb0ae8794d90ffee64f2f when I rewrote
window functions to include more infos (not just char* but whole jid
struct I think).
The same todo was added to win_print_outgoing_muc() but removed in
f3d9de133e90ed10b5b7bd61196619eab1fedb19.
This TODO should have been removed in
f3d9de133e90ed10b5b7bd61196619eab1fedb19 since there we added the myjid
parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Discovered by @aba-hollerer.
Mistake was introduced in b6b7dd5ad497a71e250b8b3cef0bb987314b141d
probably due to a wrong copy/paste.
First wasn't reproducible because I had `/receipts request on` and thus
win_print_outgoing_receipts() is used which has the correct
THEME_TEXT_ME.
Fixes https://github.com/profanity-im/profanity/issues/1441
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
00dbc1ba7c66c3bb6898aed26922bf5295768bb1 attempted to fix
https://github.com/profanity-im/profanity/issues/1449.
Here we revert the part about initializing is_omemo in chatwin_new()
since this is done in win_create_chat() already.
The actual mistake was the wrong cast of the muc window which is fixed
by the same commit. The mistake was introduced in in 3370418d71de255c832da97113543e554ec0e86b.
While being at it we also remove the is_ox initialization since this is
handled in win_create_chat()/win_create_muc() too.
|
| |
|
|
|
|
| |
Fixes #1449
|
| |
|
|
|
|
| |
Fix https://github.com/profanity-im/profanity/issues/1448
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
We require c99/gnu99 anyways.
|
| |
|
|
|
|
|
|
| |
Commit f12161f fixes memory leak, but introduces use-after-free issue.
Allocate new memory for win_name with g_strdup() since it is freed with
g_free() later.
|
|
|
|
| |
Close https://github.com/profanity-im/profanity/issues/1427
|
|
|
|
|
|
|
|
| |
This allows profanity to work without segfaulting from NULL
pointer dereferences when used with NetBSD libcurses.
Basic functionality was tested, there may be more NULL pointer
issues hiding.
|
|
|
|
|
|
| |
- Add NetBSD as a recognized platform without -ldl.
- Allow building with NetBSD libcurses instead of ncurses.
- Portability to NetBSD sh - use POSIX '=' instead of '=='.
|
|
|
|
|
|
| |
We should actually process the receipts also in LMC I think.
Regards https://github.com/profanity-im/profanity/issues/805
|
|
|
|
|
|
| |
`/console muc mention` additionally to `first|none|all`.
Fix https://github.com/profanity-im/profanity/issues/1371
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we receive a message we get:
<< room message: eagle@conference.anoxinon.me (win 2)
Same for private chats and regular chats.
And several other kinds of notifications.
If we only receive notifications from a chat window it would be nice to
also clear the hilight on the console window since we already catched up
by reading the actual message in the chat window.
Probably not the best description :-) I hope you get it..
Regards https://github.com/profanity-im/profanity/issues/1399
|
| |
|
| |
|
|
|
|
|
|
| |
This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2.
Sorting the includes creates some problems.
|
|
|
|
| |
Regards https://github.com/profanity-im/profanity/issues/1396
|
|
|
|
|
| |
It just does a free.
Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
|
|\
| |
| | |
Rework /url and /executable for filetypes
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
f9961677aaa8d2713a80127f95a3770b33af4cef replaces prefs_free_string()
with g_free(). Both is correct but lets still use this.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
|
| |
| |
| |
| | |
Fixes an issue where messages are displayed as OX when they are not.
|
|/
|
|
|
|
|
|
|
| |
Basic implementation of XEP-0373: OpenPGP for XMPP.
https://xmpp.org/extensions/xep-0373.html
Command /ox
Issue: #1331
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
strncpy(3) is not so safe function and can lead to mistakes. For
example, strncpy(dest, "Profanity", 10); is redundant and leads to
problems when someone changes the source string.
Different example is when 3rd argument equals to length of the
destination buffer. strncpy(3) doesn't terminate string with '\0' when
it truncates. Therefore, the destination string becomes corrupted.
Zeroize storage for 'nid', so the last byte remains '\0' in case of
truncate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602
sets C99 as standard.
strdup() is not part of C99.
For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99.
Using `gnu99` instead would be another option.
We should take more care to use glib functions whenever possible.
Regards https://github.com/profanity-im/profanity/issues/1357
|
|
|
|
|
|
|
|
| |
New options:
/connect <account> [auth default|legacy]
/account <account> set auth default|legacy
Fixes #1236.
|
|
|
|
| |
Fix https://github.com/profanity-im/profanity/issues/1348
|
|
|
|
|
|
|
|
| |
Mistake introduced in 86f0e0ea7033a27a83a5c24091ae1fd5b579296d
The functions later on dont set an explitic position when writing their
strings.
Fix https://github.com/profanity-im/profanity/issues/1346
|