1STATS(7ctrlproxy) STATS(7ctrlproxy)
2
3
4
6 stats - Stats generation
7
9 This module keeps track of the number of times a certain expression is
10 used and stores that data in a TDB-file. This TDB file can be read
11 later with the printstats utility.
12
13 Expressions should be Perl-compatible regexes whenever pcre is found,
14 normal regular expressions when only the POSIX regex functions are
15 found. If no regex functionality was found, just 'plain' text should be
16 specified.
17
19 The following XML elements are supported:
20
21 tdbfile
22 Location of TDB file to store statistics in.
23 $HOME/.ctrlproxy-stats.tdb is used when none is specified.
24
25 pattern
26 Pattern to search for and keep track of.
27
28 type ´Variable' to add up to whenever this pattern is used
29
31
32 <ctrlproxy>
33 <plugin autoload="1" file="stats">
34 <tdbfile>/home/jelmer/.ctrlproxy-stats.tdb</tdbfile>
35 <pattern type="happy">[:;]([-]*)[\)D]</pattern>
36 <pattern type="unhappy">[:;]([-]*)[\/\(]</pattern>
37 <pattern type="foul">(shit|damn|fuck)</pattern>
38 <pattern type="question">\?([^ ]*)$</pattern>
39 <pattern type="exclamation">!([^ ]*)$</pattern>
40 <pattern type="lines">(.*)</pattern>
41 <pattern type="word">([^ ]+)</pattern>
42 <pattern type="caps">^([^a-z]+)$</pattern>
43 <pattern type="action">.ACTION .</pattern>
44 <pattern type="violent">.ACTION .*(mept|slaat|kickt|kicks|duwt|slaps)</pattern>
45 </plugin>
46 <plugin autoload="1" file="socket"/>
47 </plugins>
48 <networks>
49 <network autoconnect="1">
50 <servers><ipv4 host="irc.freenode.net"/></servers>
51 <channel name="#flood" autojoin="1"/>
52 </network>
53 </networks>
54 </ctrlproxy>
55
56
58 This man page is valid for version 0.1 of the plugin.
59
61 ctrlproxyrc(5), ctrlproxy(1), [1]http://ctrlproxy.vernstok.nl/
62
64 [2]Jelmer Vernooij
65
67 tdb, pcre(optional)
68
70 1. http://ctrlproxy.vernstok.nl/
71 http://ctrlproxy.vernstok.nl/
72
73 2. Jelmer Vernooij
74 mailto:
75
76
77
78 08/27/2006 STATS(7ctrlproxy)