updates.
[silc.git] / apps / irssi / src / fe-common / silc / module-formats.c
1 /*
2
3   modules-formats.c
4
5   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6
7   Copyright (C) 2001 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; either version 2 of the License, or
12   (at your option) any later version.
13   
14   This program is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   GNU General Public License for more details.
18
19 */
20
21 #include "module.h"
22 #include "fe-common/core/formats.h"
23 #include "printtext.h"
24
25 FORMAT_REC fecommon_silc_formats[] = {
26         { MODULE_NAME, "SILC", 0 },
27
28         /* Channel related messages */
29         { NULL, "Channel", 0 },
30
31         { "channel_founder_you", "You are channel founder on {channel $0}", 1, { 0 } },
32         { "channel_founder", "channel founder on {channel $0} is: {channick_hilight $1}", 2, { 0, 0 } },
33         { "channel_topic", "Topic for {channel $0} is: $1", 2, { 0, 0 } },
34         { "cmode", "channel mode/{channel $0} {mode $1} by {nick $2}", 3, { 0, 0, 0 } },
35         { "cumode", "channel user mode/{channel $0}/{nick $1} {mode $2} by {nick $3}", 4, { 0, 0, 0, 0 } },
36         { "action", "{action $0}", 1, { 0 } },
37         { "notice", "{notice $0}", 1, { 0 } },
38         { "ownaction", "{ownaction $0}", 1, { 0 } },
39         { "ownnotice", "{ownnotice $0}", 1, { 0 } },
40
41         /* WHOIS and WHOWAS messages */
42         { NULL, "Who Queries", 0 },
43
44         { "whois", "{nick $0} {nickhost $1}%: realname : $2", 3, { 0, 0, 0 } },
45         { "whois_channels", " channels : $0", 1, { 0 } },
46         { "whois_modes", " modes    : $0", 1, { 0 } },
47         { "whois_idle", " idle     : $0", 1, { 0 } },
48         { "whowas", "{nick $0} was {nickhost $1} ($2)", 3, { 0, 0, 0 } },
49
50         { NULL, NULL, 0 }
51 };
52