diff options
Diffstat (limited to 'src/xmpp')
46 files changed, 209 insertions, 208 deletions
diff --git a/src/xmpp/avatar.c b/src/xmpp/avatar.c index 3c5ae70d..e65c941a 100644 --- a/src/xmpp/avatar.c +++ b/src/xmpp/avatar.c @@ -4,20 +4,20 @@ * * Copyright (C) 2019 - 2023 Michael Vetter <jubalh@iodoru.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/avatar.h b/src/xmpp/avatar.h index 65a1432e..3224b017 100644 --- a/src/xmpp/avatar.h +++ b/src/xmpp/avatar.h @@ -4,20 +4,20 @@ * * Copyright (C) 2019 - 2023 Michael Vetter <jubalh@iodoru.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/blocking.c b/src/xmpp/blocking.c index e68999d2..fb5760f6 100644 --- a/src/xmpp/blocking.c +++ b/src/xmpp/blocking.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/blocking.h b/src/xmpp/blocking.h index ff09f21b..e4bc370c 100644 --- a/src/xmpp/blocking.h +++ b/src/xmpp/blocking.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/bookmark.c b/src/xmpp/bookmark.c index 916c8195..54513df0 100644 --- a/src/xmpp/bookmark.c +++ b/src/xmpp/bookmark.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/bookmark.h b/src/xmpp/bookmark.h index c550df2a..0119c8ff 100644 --- a/src/xmpp/bookmark.h +++ b/src/xmpp/bookmark.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c index 3bd567cd..ad49e5c3 100644 --- a/src/xmpp/capabilities.c +++ b/src/xmpp/capabilities.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/capabilities.h b/src/xmpp/capabilities.h index bbc1cf8e..51c6e0fd 100644 --- a/src/xmpp/capabilities.h +++ b/src/xmpp/capabilities.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/chat_session.c b/src/xmpp/chat_session.c index 56a782f1..9efb7c08 100644 --- a/src/xmpp/chat_session.c +++ b/src/xmpp/chat_session.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/chat_session.h b/src/xmpp/chat_session.h index 619750e4..a4c5420e 100644 --- a/src/xmpp/chat_session.h +++ b/src/xmpp/chat_session.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/chat_state.c b/src/xmpp/chat_state.c index 2ebe7459..363c0ecc 100644 --- a/src/xmpp/chat_state.c +++ b/src/xmpp/chat_state.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/chat_state.h b/src/xmpp/chat_state.h index 3b2e5829..678b5712 100644 --- a/src/xmpp/chat_state.h +++ b/src/xmpp/chat_state.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 3853a905..ea3ad010 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -5,20 +5,20 @@ * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * Copyright (C) 2018 - 2023 Michael Vetter <jubalh@idoru.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -80,7 +80,7 @@ typedef struct } prof_reg_t; static ProfConnection conn; -static gchar* profanity_instance_id = NULL; +static gchar* profanitty_instance_id = NULL; static gchar* prof_identifier = NULL; static void _xmpp_file_logger(void* const userdata, const xmpp_log_level_t level, const char* const area, const char* const msg); @@ -1111,7 +1111,7 @@ _random_bytes_init(void) char* rndbytes_loc; GKeyFile* rndbytes; - rndbytes_loc = files_get_data_path(FILE_PROFANITY_IDENTIFIER); + rndbytes_loc = files_get_data_path(FILE_PROFANI_TTY_IDENTIFIER); if (g_file_test(rndbytes_loc, G_FILE_TEST_EXISTS)) { g_chmod(rndbytes_loc, S_IRUSR | S_IWUSR); @@ -1121,10 +1121,10 @@ _random_bytes_init(void) g_key_file_load_from_file(rndbytes, rndbytes_loc, G_KEY_FILE_KEEP_COMMENTS, NULL); if (g_key_file_has_group(rndbytes, "identifier")) { - profanity_instance_id = g_key_file_get_string(rndbytes, "identifier", "random_bytes", NULL); + profanitty_instance_id = g_key_file_get_string(rndbytes, "identifier", "random_bytes", NULL); } else { - profanity_instance_id = get_random_string(10); - g_key_file_set_string(rndbytes, "identifier", "random_bytes", profanity_instance_id); + profanitty_instance_id = get_random_string(10); + g_key_file_set_string(rndbytes, "identifier", "random_bytes", profanitty_instance_id); gsize g_data_size; gchar* g_accounts_data = g_key_file_to_data(rndbytes, &g_data_size, NULL); @@ -1145,7 +1145,7 @@ _random_bytes_init(void) static void _random_bytes_close(void) { - g_free(profanity_instance_id); + g_free(profanitty_instance_id); } static void @@ -1155,12 +1155,12 @@ _compute_identifier(const char* barejid) free(prof_identifier); prof_identifier = g_compute_hmac_for_string(G_CHECKSUM_SHA256, - (guchar*)profanity_instance_id, strlen(profanity_instance_id), + (guchar*)profanitty_instance_id, strlen(profanitty_instance_id), barejid, strlen(barejid)); } const char* -connection_get_profanity_identifier(void) +connection_get_profanitty_identifier(void) { return prof_identifier; } diff --git a/src/xmpp/connection.h b/src/xmpp/connection.h index d4ade03a..c2dbaa5a 100644 --- a/src/xmpp/connection.h +++ b/src/xmpp/connection.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/contact.c b/src/xmpp/contact.c index 36ad3ce9..b45f4b87 100644 --- a/src/xmpp/contact.c +++ b/src/xmpp/contact.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -219,7 +219,7 @@ p_contact_create_display_string(const PContact contact, const char* const resour // use nickname if exists const char* display_name = p_contact_name_or_jid(contact); - // add resource if not default provided by profanity + // add resource if not default provided by profani-tty if (strcmp(resource, "__prof_default") != 0) { result = g_strdup_printf("%s (%s)", display_name, resource); } else { diff --git a/src/xmpp/contact.h b/src/xmpp/contact.h index 26e73c1d..32c278d8 100644 --- a/src/xmpp/contact.h +++ b/src/xmpp/contact.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/form.c b/src/xmpp/form.c index 5290c83f..854e37c3 100644 --- a/src/xmpp/form.c +++ b/src/xmpp/form.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/form.h b/src/xmpp/form.h index 73a3d6c7..cc1b808f 100644 --- a/src/xmpp/form.h +++ b/src/xmpp/form.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 6903a412..aa5dc046 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -46,7 +46,7 @@ #include <strophe.h> -#include "profanity.h" +#include "profani-tty.h" #include "log.h" #include "config/preferences.h" #include "event/server_events.h" @@ -1649,7 +1649,7 @@ _version_get_handler(xmpp_stanza_t* const stanza) xmpp_stanza_t* name = xmpp_stanza_new(ctx); xmpp_stanza_set_name(name, "name"); xmpp_stanza_t* name_txt = xmpp_stanza_new(ctx); - xmpp_stanza_set_text(name_txt, is_custom_client ? client : "Profanity"); + xmpp_stanza_set_text(name_txt, is_custom_client ? client : "Profani-tty"); xmpp_stanza_add_child(name, name_txt); xmpp_stanza_add_child(query, name); bool include_os = prefs_get_boolean(PREF_REVEAL_OS) && !is_custom_client; diff --git a/src/xmpp/iq.h b/src/xmpp/iq.h index 887e832e..0ee3daec 100644 --- a/src/xmpp/iq.h +++ b/src/xmpp/iq.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/jid.c b/src/xmpp/jid.c index 51c710f1..610f450d 100644 --- a/src/xmpp/jid.c +++ b/src/xmpp/jid.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -218,7 +218,8 @@ jid_random_resource(void) { auto_char char* rand = get_random_string(4); - gchar* result = g_strdup_printf("profanity.%s", rand); + gchar* result = g_strdup_printf("profani-tty.%s", rand); + free(rand); return result; } diff --git a/src/xmpp/jid.h b/src/xmpp/jid.h index e55ea0c7..ebbe5917 100644 --- a/src/xmpp/jid.h +++ b/src/xmpp/jid.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/message.c b/src/xmpp/message.c index a6372c4a..2b321d12 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -5,20 +5,20 @@ * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * Copyright (C) 2019 - 2023 Michael Vetter <jubalh@iodoru.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -41,7 +41,7 @@ #include <strophe.h> -#include "profanity.h" +#include "profani-tty.h" #include "log.h" #include "config/preferences.h" #include "event/server_events.h" @@ -546,7 +546,7 @@ message_send_chat_ox(const char* const barejid, const char* const msg, gboolean xmpp_stanza_to_text(signcrypt, &c, &s); char* signcrypt_e = p_ox_gpg_signcrypt(account->jid, barejid, c); if (signcrypt_e == NULL) { - cons_show("Unable to send OX message. Check log file and profanity-ox-setup man page for details."); + cons_show("Unable to send OX message. Check log file and profani-tty-ox-setup man page for details."); log_error("Message not signcrypted."); return NULL; } @@ -1084,7 +1084,7 @@ _handle_groupchat(xmpp_stanza_t* const stanza) return; } - // room not active in profanity + // room not active in profani-tty if (!muc_active(from_jid->barejid)) { log_error("Message received for inactive chat room: %s", from_jid->str); return; @@ -1623,8 +1623,8 @@ message_is_sent_by_us(const ProfMessage* const message, bool checkOID) // our client sents at CON_RAND_ID_LEN + identifier if (tmp_len > CON_RAND_ID_LEN) { - auto_gchar gchar* uuid = g_strndup(tmp_id, CON_RAND_ID_LEN); - const char* prof_identifier = connection_get_profanity_identifier(); + char* uuid = g_strndup(tmp_id, CON_RAND_ID_LEN); + const char* prof_identifier = connection_get_profanitty_identifier(); auto_gchar gchar* hmac = g_compute_hmac_for_string(G_CHECKSUM_SHA1, (guchar*)prof_identifier, strlen(prof_identifier), diff --git a/src/xmpp/message.h b/src/xmpp/message.h index fec5662a..e6e97b6c 100644 --- a/src/xmpp/message.h +++ b/src/xmpp/message.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/muc.c b/src/xmpp/muc.c index cf41f58f..2f8da0f6 100644 --- a/src/xmpp/muc.c +++ b/src/xmpp/muc.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/muc.h b/src/xmpp/muc.h index 27fa0d4f..7eb78f2e 100644 --- a/src/xmpp/muc.h +++ b/src/xmpp/muc.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c index 23c3d375..972f7ef6 100644 --- a/src/xmpp/omemo.c +++ b/src/xmpp/omemo.c @@ -4,20 +4,20 @@ * * Copyright (C) 2019 Paul Fariello <paul@fariello.eu> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/omemo.h b/src/xmpp/omemo.h index 9f29cb96..edafef23 100644 --- a/src/xmpp/omemo.h +++ b/src/xmpp/omemo.h @@ -4,20 +4,20 @@ * * Copyright (C) 2019 Paul Fariello <paul@fariello.eu> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/ox.c b/src/xmpp/ox.c index c0e20744..bf4ecdc7 100644 --- a/src/xmpp/ox.c +++ b/src/xmpp/ox.c @@ -4,20 +4,20 @@ * * Copyright (C) 2020 Stefan Kropp <stefan@debxwoody.de> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/ox.h b/src/xmpp/ox.h index 06acd119..9d2bbb31 100644 --- a/src/xmpp/ox.h +++ b/src/xmpp/ox.h @@ -4,20 +4,20 @@ * * Copyright (C) 2020 Stefan Kropp <stefan@debxwoody.de> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index fd265535..8a9b7d21 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -44,7 +44,7 @@ #include <strophe.h> -#include "profanity.h" +#include "profani-tty.h" #include "log.h" #include "common.h" #include "config/preferences.h" diff --git a/src/xmpp/presence.h b/src/xmpp/presence.h index c6810c4e..aebde449 100644 --- a/src/xmpp/presence.h +++ b/src/xmpp/presence.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/resource.c b/src/xmpp/resource.c index 007a97c0..708589d7 100644 --- a/src/xmpp/resource.c +++ b/src/xmpp/resource.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/resource.h b/src/xmpp/resource.h index 41d20511..45cf71ed 100644 --- a/src/xmpp/resource.h +++ b/src/xmpp/resource.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c index fd7ceecf..1131c530 100644 --- a/src/xmpp/roster.c +++ b/src/xmpp/roster.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -43,7 +43,7 @@ #include <strophe.h> -#include "profanity.h" +#include "profani-tty.h" #include "log.h" #include "config/preferences.h" #include "plugins/plugins.h" diff --git a/src/xmpp/roster.h b/src/xmpp/roster.h index 253e088d..141b9b20 100644 --- a/src/xmpp/roster.h +++ b/src/xmpp/roster.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/roster_list.c b/src/xmpp/roster_list.c index 8c85fb55..480e28f1 100644 --- a/src/xmpp/roster_list.c +++ b/src/xmpp/roster_list.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/roster_list.h b/src/xmpp/roster_list.h index f9548d97..11dfe8a4 100644 --- a/src/xmpp/roster_list.h +++ b/src/xmpp/roster_list.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/session.c b/src/xmpp/session.c index c4ea3f24..8f4146d1 100644 --- a/src/xmpp/session.c +++ b/src/xmpp/session.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -39,7 +39,7 @@ #include <string.h> #include <stdlib.h> -#include "profanity.h" +#include "profani-tty.h" #include "log.h" #include "common.h" #include "config/preferences.h" @@ -175,7 +175,7 @@ session_connect_with_details(const char* const jid, const char* const passwd, co saved_details.auth_policy = NULL; } - // use 'profanity' when no resourcepart in provided jid + // use 'profani-tty' when no resourcepart in provided jid Jid* jidp = jid_create(jid); if (jidp->resourcepart == NULL) { jid_destroy(jidp); diff --git a/src/xmpp/session.h b/src/xmpp/session.h index d8565fa4..8d50c759 100644 --- a/src/xmpp/session.h +++ b/src/xmpp/session.h @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index bbc15c13..080ad924 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -4,20 +4,20 @@ * * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -980,7 +980,7 @@ stanza_create_caps_query_element(xmpp_ctx_t* ctx) gchar* client = account->client; bool is_custom_client = client != NULL; - GString* name_str = g_string_new(is_custom_client ? client : "Profanity "); + GString* name_str = g_string_new(is_custom_client ? client : "Profani-tty "); if (!is_custom_client) { xmpp_stanza_set_type(identity, "console"); g_string_append(name_str, PACKAGE_VERSION); @@ -2066,7 +2066,7 @@ stanza_attach_caps(xmpp_ctx_t* const ctx, xmpp_stanza_t* const presence) char* sha1 = caps_get_my_sha1(ctx); xmpp_stanza_set_attribute(caps, STANZA_ATTR_HASH, "sha-1"); - xmpp_stanza_set_attribute(caps, STANZA_ATTR_NODE, "http://profanity-im.github.io"); + xmpp_stanza_set_attribute(caps, STANZA_ATTR_NODE, "http://profani-tty.github.io"); xmpp_stanza_set_attribute(caps, STANZA_ATTR_VER, sha1); xmpp_stanza_add_child(presence, caps); xmpp_stanza_release(caps); diff --git a/src/xmpp/stanza.h b/src/xmpp/stanza.h index 636fafb0..b6129b65 100644 --- a/src/xmpp/stanza.h +++ b/src/xmpp/stanza.h @@ -4,20 +4,20 @@ * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * Copyright (C) 2019 - 2023 Michael Vetter <jubalh@iodoru.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/vcard.c b/src/xmpp/vcard.c index b3ff5d39..4b5ca202 100644 --- a/src/xmpp/vcard.c +++ b/src/xmpp/vcard.c @@ -4,20 +4,20 @@ * * Copyright (C) 2022 Marouane L. <techmetx11@disroot.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/vcard.h b/src/xmpp/vcard.h index 9ec04c8c..9b730dd4 100644 --- a/src/xmpp/vcard.h +++ b/src/xmpp/vcard.h @@ -4,20 +4,20 @@ * * Copyright (C) 2022 Marouane L. <techmetx11@disroot.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/vcard_funcs.h b/src/xmpp/vcard_funcs.h index 5f4aa3d0..21980f08 100644 --- a/src/xmpp/vcard_funcs.h +++ b/src/xmpp/vcard_funcs.h @@ -4,20 +4,20 @@ * * Copyright (C) 2022 Marouane L. <techmetx11@disroot.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h index 2babe536..de73bb0f 100644 --- a/src/xmpp/xmpp.h +++ b/src/xmpp/xmpp.h @@ -4,20 +4,20 @@ * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com> * Copyright (C) 2019 - 2023 Michael Vetter <jubalh@iodoru.org> * - * This file is part of Profanity. + * This file is part of Profani-tty. * - * Profanity is free software: you can redistribute it and/or modify + * Profani-tty is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * Profanity is distributed in the hope that it will be useful, + * Profani-tty is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <https://www.gnu.org/licenses/>. + * along with Profani-tty. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under @@ -205,7 +205,7 @@ int connection_count_available_resources(void); gboolean connection_supports(const char* const feature); char* connection_jid_for_feature(const char* const feature); -const char* connection_get_profanity_identifier(void); +const char* connection_get_profanitty_identifier(void); char* message_send_chat(const char* const barejid, const char* const msg, const char* const oob_url, gboolean request_receipt, const char* const replace_id); char* message_send_chat_otr(const char* const barejid, const char* const msg, gboolean request_receipt, const char* const replace_id); |