diff options
author | dinoex <dinoex@FreeBSD.org> | 2004-03-03 17:56:34 +0000 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2004-03-03 17:56:34 +0000 |
commit | 91e4c9bf62626484833bdb03af1fd146242b1674 (patch) | |
tree | 8a74b2f21c00f1d902e2b5cb82847ee9fccf0281 /irc | |
parent | d55ebef550d9be3ab4ac4f1998fe17e61c77ce90 (diff) | |
download | FreeBSD-ports-91e4c9bf62626484833bdb03af1fd146242b1674.zip FreeBSD-ports-91e4c9bf62626484833bdb03af1fd146242b1674.tar.gz |
- add autoresume patch
Diffstat (limited to 'irc')
-rw-r--r-- | irc/zircon/Makefile | 1 | ||||
-rw-r--r-- | irc/zircon/files/patch-dcc.tcl | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/irc/zircon/Makefile b/irc/zircon/Makefile index f4def87..5a06b64 100644 --- a/irc/zircon/Makefile +++ b/irc/zircon/Makefile @@ -7,6 +7,7 @@ PORTNAME= zircon PORTVERSION= 1.18.256 +PORTREVISION= 1 CATEGORIES= irc tk84 MASTER_SITES= ftp://catless.ncl.ac.uk/pub/ \ ${MASTER_SITE_LOCAL} diff --git a/irc/zircon/files/patch-dcc.tcl b/irc/zircon/files/patch-dcc.tcl new file mode 100644 index 0000000..2488a79 --- /dev/null +++ b/irc/zircon/files/patch-dcc.tcl @@ -0,0 +1,18 @@ +--- plugins/Dcc/dcc.tcl.orig Tue Jul 10 17:40:00 2001 ++++ plugins/Dcc/dcc.tcl Wed Mar 3 04:24:11 2004 +@@ -46,6 +46,15 @@ + return 0 + } + switch $posn [set fp [file size $file]] {} default { ++ foreach x [$net autoget] { ++ if {[regexp -- $x $usr]} { ++ $net CTCP DCC [$usr name] "RESUME [deSpace [file tail $file]] $port $fp" ++ global Resume ++ if {![info exists Resume($usr)]} {$usr ref} ++ lappend Resume($usr) [list $file $addr $port $leng $fp] ++ return 0 ++ } ++ } + switch [tk_dialog .@dg$net {DCC Get} \ + "File \"$file\" already exists. Select the action you want to take." \ + warning 0 Overwrite Resume {Rename incoming} \ |