15
15
<p>This module provides provides support for file compression. It can be
16
used to compress files via Tcl or to transfer the userfile compressed
16
used to compress files via Tcl or to transfer the userfile compressed
17
17
during the share process, saving bandwidth.</p>
21
21
<li><a href="#config">Config file settings</a></li>
23
<li><a href="#tclcmds">Tcl commands</a></li>
28
26
<p><a name="config"></a>1. <strong>Config file settings</strong></p>
31
<p>Lines in <strong>bold</strong> are the lines that need to be
32
included in the Eggdrop config file if you want to use the share
33
module. Lines in <strong><em>bold italics</em></strong> are optional
34
and only required if you wish to change the default behaviour for
35
that particular feature.</p>
37
<p>Put this line into your Eggdrop configuration file to load the
29
<p>Put this line into your Eggdrop configuration file to load the
38
30
compress module:</p>
40
32
<p><strong>loadmodule compress</strong></p>
42
34
<p>There are also some variables you can set in your config
48
<dt><strong><em>set share-compressed 1</em></strong></dt>
40
<dt><strong>set share-compressed 1</strong></dt>
51
43
<p>Allow compressed sending of user files? The user files are
52
compressed with the compression level defined in
44
compressed with the compression level defined in
53
45
'compress-level'.</p>
55
<p>Valid settings: 1 to enable, 0 to disable.</p>
58
<dt><strong><em>set compress-level 9</em></strong></dt>
48
<dt><strong>set compress-level 9</strong></dt>
61
<p>This is the default compression level used.</p>
51
<p>This is the default compression level used. These levels are the
52
same as those used by GNU gzip.</p>
67
<p><a name="tclcmds"></a>2. <strong>Tcl commands:</strong></p>
69
<p>See doc/tcl-commands.doc for information on each of these
74
<li><strong>compressfile [-level <level>] <src-file>
75
[target-file]</strong></li>
77
<li><strong>uncompressfile <src-file> [target-file]</strong>
82
58
<p><em>Copyright © 1997 Robey Pointer<br>
83
Copyright © 1999, 2000, 2001, 2002 <a href="http://www.eggheads.org/">
84
Eggheads Development Team</a></em></p>
59
Copyright © 1999, 2000, 2001, 2002, 2003, 2004
60
<a href="http://www.eggheads.org/"> Eggheads Development Team</a></em></p>