From 382ab91efb75eb99265abdd8cecefd5c6a01da58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 25 Jun 2021 14:05:21 +0300 Subject: [PATCH] =?UTF-8?q?net-irc/hexchat:=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=20CalculateIRC(irc.calcualte.social)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net-irc/.calculate_directory | 1 + .../net-irc/hexchat/.calculate_directory | 1 + .../hexchat/hexchat-calculateirc.patch | 39 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 profiles/templates/3.6/6_ac_install_patch/net-irc/.calculate_directory create mode 100644 profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/.calculate_directory create mode 100644 profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/hexchat-calculateirc.patch diff --git a/profiles/templates/3.6/6_ac_install_patch/net-irc/.calculate_directory b/profiles/templates/3.6/6_ac_install_patch/net-irc/.calculate_directory new file mode 100644 index 000000000..720d52e47 --- /dev/null +++ b/profiles/templates/3.6/6_ac_install_patch/net-irc/.calculate_directory @@ -0,0 +1 @@ +# Calculate append=skip diff --git a/profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/.calculate_directory b/profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/.calculate_directory new file mode 100644 index 000000000..922cc773d --- /dev/null +++ b/profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/.calculate_directory @@ -0,0 +1 @@ +# Calculate merge(net-irc/hexchat)!= append=skip diff --git a/profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/hexchat-calculateirc.patch b/profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/hexchat-calculateirc.patch new file mode 100644 index 000000000..6d8f28c6d --- /dev/null +++ b/profiles/templates/3.6/6_ac_install_patch/net-irc/hexchat/hexchat-calculateirc.patch @@ -0,0 +1,39 @@ +# Calculate format=diff +diff --git a/src/common/servlist.c b/src/common/servlist.c +index dd427a5..543b3ed 100644 +--- a/src/common/servlist.c ++++ b/src/common/servlist.c +@@ -96,6 +96,8 @@ static const struct defaultserver def[] = + {0, "irc.betachat.net"}, + {"BuddyIM", 0, 0, 0, LOGIN_SASL, 0, TRUE}, + {0, "irc.buddy.im"}, ++ {"CalculateIRC", 0, 0, 0, LOGIN_SASL, 0, TRUE}, ++ {0, "irc.calculate.social"}, + {"Canternet", 0, 0, 0, LOGIN_SASL, 0, TRUE}, + {0, "irc.canternet.org"}, + +@@ -933,7 +935,7 @@ servlist_load_defaults (void) + { + int i = 0, j = 0; + ircnet *net = NULL; +- guint def_hash = g_str_hash ("Libera.Chat"); ++ guint def_hash = g_str_hash ("CalculateIRC"); + + while (1) + { +diff --git a/src/fe-gtk/joind.c b/src/fe-gtk/joind.c +index ce3cbca..e7bcb9a 100644 +--- a/src/fe-gtk/joind.c ++++ b/src/fe-gtk/joind.c +@@ -247,9 +247,9 @@ joind_show_dialog (server *serv) + G_CALLBACK (joind_ok_cb), serv); + + if (serv->network) +- if (g_ascii_strcasecmp(((ircnet*)serv->network)->name, "Libera.Chat") == 0) ++ if (g_ascii_strcasecmp(((ircnet*)serv->network)->name, "CalculateIRC") == 0) + { +- gtk_entry_set_text (GTK_ENTRY (entry1), "#hexchat"); ++ gtk_entry_set_text (GTK_ENTRY (entry1), "#chat"); + } + + gtk_widget_grab_focus (okbutton1);