Skip to content

Commit

Permalink
lets start this...
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Nov 10, 2022
1 parent 55595ab commit ee445d2
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 31 deletions.
8 changes: 4 additions & 4 deletions doc/MODULES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Eggdrop Module Information Last revised: Jul 25, 2016
Eggdrop Module Information Last revised: Nov 10, 2022

Eggdrop Module Information

Expand Down Expand Up @@ -60,9 +60,9 @@ MODULES INCLUDED WITH EGGDROP

compress

This module provides support for file compression. This allows the
bot to transfer compressed user files and, therefore, save a
significant amount of bandwidth.
This module provides support for file compression. With share module
loaded this allows the bot to transfer compressed user files and,
therefore, save a significant amount of bandwidth.

console

Expand Down
4 changes: 2 additions & 2 deletions doc/modules/MODULES
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ channels

compress

This module provides support for file compression. This allows the
bot to transfer compressed user files and, therefore, save a
This module provides support for file compression. With share module loaded
this allows the bot to transfer compressed user files and, therefore, save a
significant amount of bandwidth.

console
Expand Down
6 changes: 3 additions & 3 deletions doc/sphinx_source/modules/included.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Modules included with Eggdrop
or save channel specific userfile information.

:ref:`compress`
This module provides support for file compression. This
allows the bot to transfer compressed user files and, therefore,
save a significant amount of bandwidth.
This module provides support for file compression. With share module loaded
this allows the bot to transfer compressed user files and, therefore, save a
significant amount of bandwidth.

:ref:`console`
This module provides storage of console settings when you exit
Expand Down
10 changes: 4 additions & 6 deletions doc/sphinx_source/modules/mod/compress.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
Last revised: May 27, 2004
Last revised: Nov 10, 2022

.. _compress:

===============
Compress Module
===============

This module provides support for file compression. It can be used
to compress files via Tcl or to transfer the userfile compressed during the
share process, saving bandwidth.

This module requires: share
This module provides support for file compression. It can be used to compress
files via Tcl or, with share module loaded, to transfer the userfile compressed
during the share process, saving bandwidth.

Put this line into your Eggdrop configuration file to load the compress
module::
Expand Down
8 changes: 4 additions & 4 deletions eggdrop.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1510,10 +1510,10 @@ set xfer-timeout 30

#### COMPRESS MODULE ####

# This module provides support for file compression. This allows the
# bot to transfer compressed user files and therefore save a significant amount
# of bandwidth. The share module must be loaded to load this module. Un-comment
# the following line to the compress module.
# This module provides support for file compression. With share module loaded
# this allows the bot to transfer compressed user files and therefore save a
# significant amount of bandwidth. Un-comment the following line to the compress
# module.
#loadmodule compress

# Allow compressed sending of user files? The user files are compressed with
Expand Down
13 changes: 7 additions & 6 deletions src/mod/compress.mod/compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ static char *compress_close()
rem_help_reference("compress.help");
rem_tcl_commands(my_tcl_cmds);
rem_tcl_ints(my_tcl_ints);
uff_deltable(compress_uff_table);
if (share_funcs)
uff_deltable(compress_uff_table);

module_undepend(MODULE_NAME);
return NULL;
Expand All @@ -437,6 +438,7 @@ static Function compress_table[] = {

char *compress_start(Function *global_funcs)
{
module_entry *me;
global = global_funcs;

compressed_files = 0;
Expand All @@ -450,13 +452,12 @@ char *compress_start(Function *global_funcs)
return "This module requires Eggdrop 1.8.0 or later.";
}

share_funcs = module_depend(MODULE_NAME, "share", 2, 3);
if (!share_funcs) {
module_undepend(MODULE_NAME);
return "This module requires share module 2.3 or later.";
me = module_find("share", 2, 3);
if (me) {
share_funcs = me->funcs;
uff_addtable(compress_uff_table);
}

uff_addtable(compress_uff_table);
add_tcl_ints(my_tcl_ints);
add_tcl_commands(my_tcl_cmds);
add_help_reference("compress.help");
Expand Down
4 changes: 2 additions & 2 deletions src/mod/compress.mod/help/compress.help
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
%{help=compress module}%{+n}
### %bcompress module%b
This module provides support for file compression. It can be used
to compress files via Tcl or to transfer the userfile compressed during the
share process, saving bandwidth.
to compress files via Tcl or, with share module loaded, to transfer the
userfile compressed during the share process, saving bandwidth.

Config file variables for configuring the compress module:
%bcompress-level share-compressed%b
Expand Down
8 changes: 4 additions & 4 deletions src/mod/compress.mod/modinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DESC:The compress module provides support for file compression. This
DESC:allows the bot to transfer compressed user files and therefore
DESC:saves a significant amount of bandwidth, especially on very active
DESC:hubs. The module depends on the zlib library.
DESC:The compress module provides support for file compression. With share
DESC:module loaded this allows the bot to transfer compressed user files and
DESC:therefore saves a significant amount of bandwidth, especially on very
DESC:active hubs. The module depends on the zlib library.
DESC:
DESC:You will want to ENABLE this module if you have enough CPU time
DESC:to spare.
Expand Down

0 comments on commit ee445d2

Please sign in to comment.