This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

stats.mod problems!

General support and discussion of Eggdrop bots.
Post Reply
s
samhain
Halfop
Posts: 77
Joined: Wed Jan 03, 2007 5:19 am

stats.mod problems!

Post by samhain »

[16:46:00] Stats.mod: Added firewall2011 to userlist.
I have a problem in my stats.mod I don't understand how to stop the bot from adding the users itself, I want to have my bot save stats for only those users who I add to the bot, but it adds users itself, also it adds new hosts to the users added how to stop this please explain....
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

I'll just asume you're using stats.mod 1.3 (stable version) of the module, the settings dont really change that much. The following options to do with adding users and hostmask updates.

Code: Select all

# add new users to the database if they stay more than x minutes 
# in the channel
# >0: enabled
#  0: don't add new users, but recheck every minute if a user idented himself
# -1: don't add new users and don't recheck every minute. If someone idents
#     him/herself, he/she must cycle the chan to be recognized. (lowest CPU usage)
set autoadd 5
not really relivant but can affect the behavour of the module are the following settings

Code: Select all

## don't add new hosts to users with the following flags
## (only works for users in the eggdrop-userfile, use
##  .schattr <user> -addhosts for users in the stats-userbase)
#set anti-autoadd-flags "ofvb|ofv"
#
## exclude users with the following flags from the top10, top20...
## (also only for eggdrop-userfile. Use .schattr <user> -list.
#set anti-stats-flag "b|-"
From the README file
User management:
----------------

Since v1.3.0, stats.mod has an internal userdatabase. It can automatically
add users and hostmasks to it. Users which are in the eggdrop userfile have a
higher priority, so if someone is known as "bla" by the bot and as "blub"
by stats.mod, his stats will be logged to "bla".
Hostmasks will be removed from a user if they haven't been used for a
specified time. If all hosts got removed from a user, the user will be erased
completely.
Note that stats.mod can't know when someone used IDENT or if someone added
new hosts to a user manually. The affected user should cycle the chan to make
sure that he's recognized correctly by stats.mod.

There are two flags for users: +/-list and +/-addhosts:
- If a user has the flag -list, he/she/it won't be listed in the top10. (you
probably want to set all your bot -list)
- If a user is -addhosts, no new hostmasks will be added to him/her. You'll
have to add all hosts manually with .+shost. (useful if someone if trying
to fake you)
Post Reply