PtokaX forum

Archive => Archived 5.1 boards => Finished Scripts => Topic started by: Thor on 24 December, 2006, 17:51:45

Title: Userlog
Post by: Thor on 24 December, 2006, 17:51:45
This script is a simple userlog about users. All MyINFO part is stored and searchable. Users stored in the database for the preconfigured time.
Commands:
!showinfo (!si) <nick/IP> - Show avaible info about the given user/IP address
!searchdatabase (!sdb) <parameter> - Show information about the given parameter, which can be nick, IP, nick-part, IP-part, email-address, description, tag...
!dbinfo (!dbi) - Shows additional informations about the script, like database-file size, memory usage...
!dbsettings (!dbs) - This command shows the settings of the script, and with this command you can modify the values too.
!myban <string> - Bans the given MyINFO string, can be useful against some idiot...
!myunban <string> - With this command you can remove a MyINFO banned string.
!mybanlist - Lists the currently added MyINFO banned strings.
!secconvert (!sc) <number> - With this command you can convert seconds to months-days-hours-minutes-seconds format. Useful to the settings, where the time values stored in seconds.
Merry Christmas to all :)
Title: Re: Userlog
Post by: TrIp-iN-SuN on 26 December, 2006, 22:26:23
i find same error when u type command !dbinfo i get error
[23:20] Syntax ...tings\TrIp-iN-SuN\Desktop\PsySun\scripts\userlog.lua:220: attempt to index local 'dbfile' (a nil value)

and when i add same one to ban MyINFO i get this error

[00:03] Syntax ...tings\TrIp-iN-SuN\Desktop\PsySun\scripts\userlog.lua:90: attempt to concatenate global 'nick' (a nil value)
Title: Re: Userlog
Post by: Thor on 27 December, 2006, 11:39:41
Ok, error fixed, this script was made originally for Verli, and I forgot that line. The second error is because you used that command before the script made the file (basely 1 hour). This one has been fixed too. First post updated.
Title: Re: Userlog
Post by: TrIp-iN-SuN on 02 January, 2007, 21:37:34
and where i can find that script with fixed errors?
Title: Re: Userlog
Post by: Alexinno on 02 January, 2007, 22:12:36
Quote from: Hungarista on 27 December, 2006, 11:39:41
Ok, error fixed, ...
First post updated.

TrIp-iN-SuN check Hungarista's signature, at the first post and download the script again ;)
Title: Re: Userlog
Post by: ??']['??l? on 03 January, 2007, 04:06:42
can someone convert this script to lua 5.02...???

Thanks for advance... :) :) :)
Title: Re: Userlog
Post by: TrIp-iN-SuN on 03 January, 2007, 17:59:49
tnx