From 6d30e3d059e8e71d191308f29d3595ab682af3ef Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Sat, 19 Jul 2025 02:16:38 +0200 Subject: [PATCH] Update name and license --- src/command/cmd_funcs.c | 7 +++++++ src/ui/console.c | 22 +++++++--------------- src/ui/window.c | 2 +- tests/functionaltests/test_muc.c | 6 +++--- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 098d192f..a80e27c0 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -1715,8 +1715,15 @@ cmd_help(ProfWin* window, const char* const command, gchar** args) gboolean cmd_about(ProfWin* window, const char* const command, gchar** args) { + ProfWin* console = wins_get_console(); cons_show(""); cons_about(); + win_println(console, THEME_DEFAULT, "-", "Licensed under GNU GPL v3."); + win_println(console, THEME_DEFAULT, "-", "CProof is an independent fork of Profanity and is not affiliated with it."); + win_println(console, THEME_DEFAULT, "-", "Profanity: Copyright (C) 2012–2019 James Booth, 2019–2025 Michael Vetter"); + win_println(console, THEME_DEFAULT, "-", "Copyright (C) 2025 CProof Developers"); + win_println(console, THEME_DEFAULT, "-", ""); + return TRUE; } diff --git a/src/ui/console.c b/src/ui/console.c index 82cf5ac6..3ed256e1 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -387,16 +387,9 @@ cons_about(void) _cons_splash_logo(); } else { auto_gchar gchar* prof_version = prof_get_version(); - win_println(console, THEME_DEFAULT, "-", "Welcome to Profanity, version %s", prof_version); + win_println(console, THEME_DEFAULT, "-", "Welcome to CProof, version %s", prof_version); } - win_println(console, THEME_DEFAULT, "-", "Copyright (C) 2012 - 2019 James Booth ."); - win_println(console, THEME_DEFAULT, "-", "Copyright (C) 2019 - 2025 Michael Vetter ."); - win_println(console, THEME_DEFAULT, "-", "License GPLv3+: GNU GPL version 3 or later "); - win_println(console, THEME_DEFAULT, "-", ""); - win_println(console, THEME_DEFAULT, "-", "This is free software; you are free to change and redistribute it."); - win_println(console, THEME_DEFAULT, "-", "There is NO WARRANTY, to the extent permitted by law."); - win_println(console, THEME_DEFAULT, "-", ""); win_println(console, THEME_DEFAULT, "-", "Type '/help' to show complete help."); win_println(console, THEME_DEFAULT, "-", ""); @@ -2704,13 +2697,12 @@ _cons_splash_logo(void) ProfWin* console = wins_get_console(); win_println(console, THEME_DEFAULT, "-", "Welcome to"); - win_println(console, THEME_SPLASH, "-", " ___ _ "); - win_println(console, THEME_SPLASH, "-", " / __) (_)_ "); - win_println(console, THEME_SPLASH, "-", " ____ ___ ___ | |__ ____ ____ _| |_ _ _ "); - win_println(console, THEME_SPLASH, "-", "| _ \\ / __) _ \\| __) _ | _ \\| | _) | | |"); - win_println(console, THEME_SPLASH, "-", "| | ) | | | (_) | | | ( | | | | | | |_| |_| |"); - win_println(console, THEME_SPLASH, "-", "| ||_/|_| \\___/|_| \\_||_|_| |_|_|\\___)__ |"); - win_println(console, THEME_SPLASH, "-", "|_| (____/ "); + win_println(console, THEME_SPLASH, "-", " _____ _____ __ "); + win_println(console, THEME_SPLASH, "-", " / ____| __ \\ / _|"); + win_println(console, THEME_SPLASH, "-", " | | | |__) | __ ___ ___ | |_ "); + win_println(console, THEME_SPLASH, "-", " | | | ___/ '__/ _ \\ / _ \\| _|"); + win_println(console, THEME_SPLASH, "-", " | |____| | | | | (_) | (_) | | "); + win_println(console, THEME_SPLASH, "-", " \\_____|_| |_| \\___/ \\___/|_| "); win_println(console, THEME_SPLASH, "-", ""); auto_gchar gchar* prof_version = prof_get_version(); diff --git a/src/ui/window.c b/src/ui/window.c index 5dc81391..c8742926 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -64,7 +64,7 @@ #include "xmpp/roster_list.h" static const char* LOADING_MESSAGE = "Loading older messages…"; -static const char* CONS_WIN_TITLE = "Profanity. Type /help for help information."; +static const char* CONS_WIN_TITLE = "CProof. Type /help for help information."; static const char* XML_WIN_TITLE = "XML Console"; #define CEILING(X) (X - (int)(X) > 0 ? (int)(X + 1) : (int)(X)) diff --git a/tests/functionaltests/test_muc.c b/tests/functionaltests/test_muc.c index 7727cb28..6150c77c 100644 --- a/tests/functionaltests/test_muc.c +++ b/tests/functionaltests/test_muc.c @@ -281,7 +281,7 @@ shows_all_messages_in_console_when_window_not_focussed(void **state) assert_true(prof_output_exact("-> You have joined the room as stabber, role: participant, affiliation: none")); prof_input("/win 1"); - assert_true(prof_output_exact("Profanity. Type /help for help information.")); + assert_true(prof_output_exact("CProof. Type /help for help information.")); stbbr_send( "" @@ -322,7 +322,7 @@ shows_first_message_in_console_when_window_not_focussed(void **state) assert_true(prof_output_exact("-> You have joined the room as stabber, role: participant, affiliation: none")); prof_input("/win 1"); - assert_true(prof_output_exact("Profanity. Type /help for help information.")); + assert_true(prof_output_exact("CProof. Type /help for help information.")); stbbr_send( "" @@ -368,7 +368,7 @@ shows_no_message_in_console_when_window_not_focussed(void **state) assert_true(prof_output_exact("-> You have joined the room as stabber, role: participant, affiliation: none")); prof_input("/win 1"); - assert_true(prof_output_exact("Profanity. Type /help for help information.")); + assert_true(prof_output_exact("CProof. Type /help for help information.")); stbbr_send( ""