fix(ui): Fix custom outgoing stamp and fix stamp command help

Replace the hardcoded "me" stamp for outgoing messages that are
sometimes used with the value from PREF_OUTGOING_STAMP.

It was never implemented in all code paths. Like with receipts for
example.

Additionally fix the confusing description and variable names.

Ref: 2c003dd2 (Add /stamp feature)
Ref: 3a4cd7da (Broke the variables)
Fixes: https://github.com/profanity-im/profanity/issues/2125
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
Michael Vetter
2026-03-20 15:29:03 +01:00
parent c3fbb89a7a
commit b0a89530f2
4 changed files with 10 additions and 9 deletions

View File

@@ -8960,15 +8960,15 @@ gboolean
cmd_stamp(ProfWin* window, const char* const command, gchar** args)
{
if (g_strv_length(args) == 0) {
auto_gchar gchar* def_incoming = prefs_get_string(PREF_OUTGOING_STAMP);
if (def_incoming) {
cons_show("The outgoing stamp is: %s", def_incoming);
auto_gchar gchar* def_outgoing = prefs_get_string(PREF_OUTGOING_STAMP);
if (def_outgoing) {
cons_show("The outgoing stamp is: %s", def_outgoing);
} else {
cons_show("The default outgoing stamp is used.");
}
auto_gchar gchar* def_outgoing = prefs_get_string(PREF_INCOMING_STAMP);
if (def_outgoing) {
cons_show("The incoming stamp is: %s", def_outgoing);
auto_gchar gchar* def_incoming = prefs_get_string(PREF_INCOMING_STAMP);
if (def_incoming) {
cons_show("The incoming stamp is: %s", def_incoming);
} else {
cons_show("The default incoming stamp is used.");
}