1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

use more standard replies when setting stamp

This commit is contained in:
Michael Vetter 2022-04-28 19:31:27 +02:00
parent 6c5d983f13
commit 0dd0193eba

View File

@ -9028,20 +9028,20 @@ cmd_stamp(ProfWin* window, const char* const command, gchar** args)
cons_show("The outgoing stamp is: %s", def); cons_show("The outgoing stamp is: %s", def);
free(def); free(def);
} else { } else {
cons_show("No outgoing stamp."); cons_show("The default outgoing stamp is used.");
} }
def = prefs_get_string(PREF_INCOMING_STAMP); def = prefs_get_string(PREF_INCOMING_STAMP);
if (def) { if (def) {
cons_show("The incoming stamp is: %s", def); cons_show("The incoming stamp is: %s", def);
free(def); free(def);
} else { } else {
cons_show("No incoming stamp."); cons_show("The default incoming stamp is used.");
} }
return TRUE; return TRUE;
} }
if (g_strv_length(args) == 1) { if (g_strv_length(args) == 1) {
cons_show("Wrong usage: need a parameter."); cons_bad_cmd_usage(command);
return TRUE; return TRUE;
} }