diff options
author | jim <jim@FreeBSD.org> | 2001-11-25 09:00:05 +0800 |
---|---|---|
committer | jim <jim@FreeBSD.org> | 2001-11-25 09:00:05 +0800 |
commit | bc2f701c5a366a435536a89ac62f2852c8cedc1e (patch) | |
tree | 251054c12c7e41184f9c68f13957c7b873f15cf4 /irc/xchat1 | |
parent | 91afc98dbc55d182688cec0ae37d75f2b773f22f (diff) | |
download | freebsd-ports-gnome-bc2f701c5a366a435536a89ac62f2852c8cedc1e.tar.gz freebsd-ports-gnome-bc2f701c5a366a435536a89ac62f2852c8cedc1e.tar.zst freebsd-ports-gnome-bc2f701c5a366a435536a89ac62f2852c8cedc1e.zip |
Add two patches -- one fixes dccs autoresume, and the other fixes xchat
when used with bnc.
Prodded by: David Hill <david@phobia.ms>
Obtained from: xchat.org
Diffstat (limited to 'irc/xchat1')
-rw-r--r-- | irc/xchat1/files/patch-autoresume | 17 | ||||
-rw-r--r-- | irc/xchat1/files/patch-bnc | 46 |
2 files changed, 63 insertions, 0 deletions
diff --git a/irc/xchat1/files/patch-autoresume b/irc/xchat1/files/patch-autoresume new file mode 100644 index 000000000000..fa01aaddf088 --- /dev/null +++ b/irc/xchat1/files/patch-autoresume @@ -0,0 +1,17 @@ +--- src/common/dcc.c.orig Fri Oct 12 08:13:04 2001 ++++ src/common/dcc.c Sat Nov 24 16:47:39 2001 +@@ -1292,8 +1292,12 @@ + while (list) + { + d = list->data; +- if (d != dcc && strcmp (d->destfile, dcc->destfile) == 0) +- goto dontresume; ++ if (d->type == TYPE_RECV && d->dccstat != STAT_ABORTED && ++ d->dccstat != STAT_DONE && d->dccstat != STAT_FAILED) ++ { ++ if (d != dcc && strcmp (d->destfile, dcc->destfile) == 0) ++ goto dontresume; ++ } + list = list->next; + } + dcc_resume (dcc); diff --git a/irc/xchat1/files/patch-bnc b/irc/xchat1/files/patch-bnc new file mode 100644 index 000000000000..17bff4c687b8 --- /dev/null +++ b/irc/xchat1/files/patch-bnc @@ -0,0 +1,46 @@ +--- src/common/xchat.c.orig Sun Oct 14 07:46:36 2001 ++++ src/common/xchat.c Sat Nov 24 16:48:41 2001 +@@ -69,6 +69,7 @@ + GSList *urlhandler_list = 0; + static GSList *away_list = 0; + ++static int in_xchat_exit = FALSE; + int xchat_is_quitting = FALSE; + int auto_connect = TRUE; + +@@ -730,7 +731,7 @@ + free (killsess->current_modes); + free (killsess); + +- if (!sess_list && !xchat_is_quitting) ++ if (!sess_list && !in_xchat_exit) + xchat_exit (); /* sess_list is empty, quit! */ + + list = sess_list; +@@ -1051,6 +1052,7 @@ + xchat_exit (void) + { + xchat_is_quitting = TRUE; ++ in_xchat_exit = TRUE; + #ifdef USE_PERL + perl_end (); + #endif + +--- src/fe-gtk/maingui.c.orig Thu Oct 25 00:19:29 2001 ++++ src/fe-gtk/maingui.c Sat Nov 24 16:48:41 2001 +@@ -923,7 +923,6 @@ + static void + gui_main_window_kill (gpointer userdata) + { +-#if 0 + GSList *list; + session *sess; + +@@ -941,7 +940,6 @@ + } + list = list->next; + } +-#endif + + main_window = 0; + current_tab = 0; |