Last.Mod records logins and logouts on your bot's party line.
.last command you can see who was on,
from which remote host at which time (and how long he/she was there).
last.mod will work with eggdrop1.6.x only.
The following instructions assume,
~/eggdrop1.6/ is the directory where you installed your eggdrop from.
other source dirs will work as well) Unfortunately,
you need to compile
last.mod within your eggdrop source,
so if you removed your original compile directory,
you'll have to compile the whole bot again...
(Note: replace X.Y.Z with your actual last.mod version number) Put
and unpack it (
tar xfz last.mod.X.Y.Z.tar.gz).
Change directory back to
wait until compiling is done and use
make install to install the bot and
set the number of lines to show if
-n NUM/-NUMwas not given. Default: 20
set the file name where the records are saved. If used, this should be set before
last.modis loaded. Default: Eggdrop.last
Last.mod adds one new dcc command
.last [-n NUM|-NUM] [-t DATE] [-i] [--] [user|idx|host]
- -n NUM
show the last NUM lines instead of the default
show IP instead of
- -t DATE
Show only logins up to this date. DATE is in the format
YYYYMMDDhhmmss, but may be shortened, all missing fields will be set to the beginning of that period. Examples:
200704 -> 20070401000000 2007 -> 20070101000000 2007040316 -> 20070403160000
... ok, I think you get the idea.
stop option parsing
What to search for.
hostwill accept wildcards.
.last -n 5 Veti*will show the last 5 logins of anyone matching
There is absolutely NO WARRANTY on this module. I do my best to make it work properly, but if anything gets screwed up, I'm not responsible. Use this module at your own risk.
This mod hast been written on Linux amd64 (debian etch, lenny) and is known to work on Linux x86 (debian sarge, etch, lenny), Linux mips (debian etch) and IRIX (uname -a: IRIX64 binky 6.5 01080747 IP30 mips, with gcc 3.2.2).
If you have problems compiling and/or running this on other systems... please help (see below), currently I have no access to other OSs to test...
- Ganda|f for build testing on FreeBSD 5.3