203e3a3015a6606814f6ccf71a46fdfa73ed9c00
[silc.git] / apps / irssi / src / fe-common / core / module.h
1 #include "common.h"
2
3 #define MODULE_NAME "fe-common/core"
4
5 typedef struct {
6         time_t time;
7         char *nick;
8
9         /* channel specific msg to/from me - this is actually a reference
10            count. it begins from `completion_keep_publics' and is decreased
11            every time some nick is added to lastmsgs list.
12
13            this is because of how the nick completion works. the same nick
14            is never in the lastmsgs list twice, but every time it's used
15            it's just moved to the beginning of the list. if this would be
16            just a boolean value the own-status would never be removed
17            from the nick if it didn't keep quiet for long enough.
18
19            so, the own-status is rememberd only for the last
20            `completion_keep_publics' lines */
21         int own;
22 } LAST_MSG_REC;
23
24 typedef struct {
25         /* /MSG completion: */
26         GSList *lastmsgs; /* list of nicks who sent you msg or
27                              to who you send msg */
28 } MODULE_SERVER_REC;
29
30 typedef struct {
31         /* nick completion: */
32         GSList *lastmsgs; /* list of nicks who sent latest msgs and
33                              list of nicks who you sent msgs to */
34 } MODULE_CHANNEL_REC;