File: README.lean

package info (click to toggle)
sbnc 1.2-26
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,216 kB
  • sloc: cpp: 17,556; ansic: 15,514; sh: 13,419; tcl: 5,567; php: 448; makefile: 284
file content (20 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
shroudBNC setting: "user.lean"
------------------------------

If you're going to use an sBNC instance for a lot of users (>500) you might
want to consider using "lean" mode in order to improve performance.

When enabled the parser does not parse/process certain messages which are
received from an IRC server. Several modes are defined:

0 - default mode, every line is processed as usual
1 - chanusers' hosts (i.e. ident@host) are not updated (and thus are also not available to TCL scripts)
2 - sbnc does not keep track of channel users at all (i.e. information which the /names command returns)

Using a TCL script you can set the "lean" mode for new users:

internalbind usrcreate set_lean_mode

proc set_lean_mode {username} {
	setbncuser $username lean 2
}