aboutsummaryrefslogtreecommitdiffstats
path: root/docs/General/Internals.pod
blob: c364dd5828b00ab652fec1cad7547c07d32f5f82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
__END__

=head1 Random Notes on Irssi Internals.


=head2 Display Output

Irssi has to deal with a whole bunch of things between a script print() and actually
putting it on the screen.

Some of these things are:

=over 4

=item Message Levels

=item Abstract Replacements

=item Theme formats

=item Module  (C</format>) formats

=back

==head3 Message Levels

Message levels are defined in F<src/core/levels.h> and some
support functions in F<src/core/levels.c>

We have:

=over 4

=item C<int level_get(str level)>

Special cases: C<ALL, *> both return MSGLEVEL_ALL, and C<NEVER> returns 0.
The remainder are looked up in a big static string array by name to
find the appropriate numeric level.  Partial matches are permitted as
long as they are unambigious.


=item C<int level2bits(str level, int *errorp)>

=item C<str bits2level(int bits)>

=item C<int combine_level(int dest, str src)>