stats7ctrlproxy
Stats generation
Overview
This module keeps track of the number of times a certain expression is used and stores that data in a TDB-file. This TDB file can be read later with the printstats utility.
Expressions should be Perl-compatible regexes whenever pcre is found, normal regular expressions when only the POSIX regex functions are found. If no regex functionality was found, just 'plain' text should be specified.
Configuration
The following XML elements are supported:
- tdbfile
-
Location of TDB file to store statistics in. $HOME/.ctrlproxy-stats.tdb is used when none is specified.
- pattern
-
Pattern to search for and keep track of.
- type
Examples
<ctrlproxy> <plugin autoload="1" file="stats"> <tdbfile>/home/jelmer/.ctrlproxy-stats.tdb</tdbfile> <pattern type="happy">[:;]([-]*)[\)D]</pattern> <pattern type="unhappy">[:;]([-]*)[\/\(]</pattern> <pattern type="foul">(shit|damn|fuck)</pattern> <pattern type="question">\?([^ ]*)$</pattern> <pattern type="exclamation">!([^ ]*)$</pattern> <pattern type="lines">(.*)</pattern> <pattern type="word">([^ ]+)</pattern> <pattern type="caps">^([^a-z]+)$</pattern> <pattern type="action">.ACTION .</pattern> <pattern type="violent">.ACTION .*(mept|slaat|kickt|kicks|duwt|slaps)</pattern> </plugin> <plugin autoload="1" file="socket"/> </plugins> <networks> <network autoconnect="1"> <servers><ipv4 host="irc.freenode.net"/></servers> <channel name="#flood" autojoin="1"/> </network> </networks> </ctrlproxy>
Version
This man page is valid for version 0.1 of the plugin.
Requirements
tdb, pcre(optional)