03.06.2000


last.tcl Component Documentation




# last.tcl for netbots.tcl v3.30
# designed to work with eggdrop 1.4.0 or higher
# Johoho's Eggdrop Page - http://johoho.tuts.net/eggdrop/
# last.tcl copyright (c) 1999,2000 by Johoho <johoho@hojo-net.de>
# netbots.tcl copyright (c) 1998-2000 by slennox <slennox@egghelp.org>

## last.tcl component script v0.50.0, 23.05.2000 ##

# History:
#
# v0.01.0, 13.05.2000 - structure defined
# v0.10.0, 15.05.2000 - wrote initial procs - should work.
# v0.17.0, 15.05.2000 - script works! done some cosmetics.
# v0.20.0, 15.05.2000 - reduced load to one file ..lot's of rewrites neccessary now... :(
# v0.30.0, 22.05.2000 - options -h, -l, -u and -r work now - even combined
# v0.50.0, 23.05.2000 - rewrote options code, extended -r, added -s and -v

# thanks slennox for netbots.tcl

Please note that this component is fully compatible with netbots.tcl v3.10 - 3.30 by slennox

Index




Description

last searches back through the file data/etmp in your eggdrop dir (or the file designated in netset.tcl) and displays a list of all users logged in (and out) since that file was created.
Handles of users, hostmasks and time intervals can be given, in which case last will show only those entries matching the arguments. rehash, restart and inital eggdrop start are treated as users. Thus last restart will show a log of all rehashs, restarts and starts since the log file was created.



Commands MSG/DCC

DCC Commands

.last (-|-) - show last logins

Further help is available via the netbots help system or last --help


Installation

netset.tcl

To install this component properly you have to copy it to your netbots directory and add these lines to your netset.tcl conf:

# last.tcl settings
set nb_component(last) 1



FAQ

Q:  I run two bots from the same directory and they obviously share the same etmp file. Is there a way to avoid this bug?
A:  Yes, there is one. There is a setting called lt_file which allows you to set a different path/name for the etmp file. Place this in your last.tcl section of netset.tcl:
nb_set Bot1 lt_file "data/etmp.Bot1"
nb_set Bot2 lt_file "data/etmp.Bot2"
 
Q:  I have a question, but it's not listed here.
A:  Feel free to contact the author at johoho@hojo-net.de!



Contact

You can contact me via E-Mail at johoho@hojo-net.de, at ICQ 2499577 (tell me who you are and what you want or I'll ignore you) or catch me on irc usually around 18-24 UTC+1 in #eggdrop. (IrcNET)


DISCLAIMER

last.tcl is provided 'as is' and without warranty of any kind. You may use it own will as long as the author is NOT held responsible for ANY damage caused by the usage of this script, neither direct or indirect.
You may modify the script and all belonging files as long as you keep this copyright-text, include a short description of all changes, and send a copy to the author (e-mail: johoho@hojo-net.de).



©2000 by Johoho@IrcNET, 03 June 2000. CONTACT