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         { "channel_topic_not_set", "Topic for {channel $0} not set", 1, { 0 } },
35         { "cmode", "channel mode/{channel $0} {mode $1} by {nick $2}", 3, { 0, 0, 0 } },
36         { "cumode", "channel user mode/{channel $0}/{nick $1} {mode $2} by {nick $3}", 4, { 0, 0, 0, 0 } },
37         { "action", "{action $0-}", 2, { 0, 0 } },
38         { "notice", "{notice $0-}", 2, { 0, 0 } },
39         { "ownaction", "{ownaction $0-}", 2, { 0, 0 } },
40         { "ownnotice", "{ownnotice $0-}", 2, { 0, 0 } },
41         { "invite_list", "channel {channel $0} invite list: $1", 2, { 0, 0 } },
42         { "no_invite_list", "channel {channel $0} invite list not set", 1, { 0 } },
43         { "ban_list", "channel {channel $0} ban list: $1", 2, { 0, 0 } },
44         { "no_ban_list", "channel {channel $0} ban list not set", 1, { 0 } },
45         { "inviting", "Inviting {nick $0} to channel {channel $1}", 2, { 0, 0 } },
46         { "kicked_you", "You have been kicked off channel {channel $0} by {nick $1} ($2)", 3, { 0, 0, 0 } },
47         { "kicked", "{nick $0} has been kicked off channel {channel $1} by {nick $2} ($3)", 4, { 0, 0, 0, 0 } },
48         { "killed_you", "You have been killed from the SILC Network by {nick $0} ($1)", 2, { 0, 0 } },
49         { "killed", "{nick $0} has been killed from the SILC Network by {nick $1} ($2)", 3, { 0, 0, 0 } },
50
51         /* WHOIS, WHOWAS and USERS (alias WHO) messages */
52         { NULL, "Who Queries", 0 },
53
54         { "whois", "{nick $0} {nickhost $1@$2}%: nickname    : $3 ($4)", 5, { 0, 0, 0, 0, 0 } },
55         { "whois_realname",    " realname    : $0", 1, { 0 } },
56         { "whois_channels",    " channels    : $0", 1, { 0 } },
57         { "whois_modes",       " modes       : $0", 1, { 0 } },
58         { "whois_idle",        " idle        : $0", 1, { 0 } },
59         { "whois_fingerprint", " fingerprint : $0", 1, { 0 } },
60         { "whowas", "{nick $0} was {nickhost $1} ($2)", 3, { 0, 0, 0 } },
61         { "users_header", "Users on {channelhilight $0}", 1, { 0 } },
62         { "users", " %|{nick $[!20]0} $[!5]1 $2@$3 {comment {hilight $4}}", 5, { 0, 0, 0, 0, 0 } },
63
64         /* Key management and key agreement */
65         { NULL, "Key Management And Key Agreement", 0 },
66
67         { "channel_private_key_add", "Private key set to channel {channel $0}", 1, { 0 } },
68         { "channel_private_key_nomode", "Private key mode is not set on channel {channel $0}", 1, { 0 } },
69         { "channel_private_key_error", "Could not add private key to channel {channel $0}", 1, { 0 } },
70         { "channel_private_key_list", "Channel {channel $0} private keys%:  Cipher           Hmac             Key", 1, { 0 } },
71         { "channel_private_change", "You are using private key n:o $0 on {channel $1}", 2, { 1, 0 } },
72         { "private_key_list", "Private message keys%:  Client                         Cipher         Key", 0 },
73         { "private_key_list_nick", "Private message keys with {nick $0}%:  Client                         Cipher         Key", 1, { 0 } },
74         { "key_agreement", "Requesting key agreement with {nick $0}", 1, { 0 } },
75         { "key_agreement_request", "{nick $0} wants to perform key agreement", 1, { 0 } },
76         { "key_agreement_request_host", "{nick $0} wants to perform key agreement on {nickhost $1} port {hilight $2}", 3, { 0, 0, 0 } },
77         { "key_agreement_negotiate", "Starting key agreement with {nick $0}", 1, { 0 } },
78         { "key_agreement_privmsg", "The private messages with {nick $0} are now protected with private key", 1, { 0 } },
79         { "key_agreement_ok", "Key agreement completed successfully with {nick $0}", 1, { 0 } },
80         { "key_agreement_error", "Error occurred during key agreement with {nick $0}", 1, { 0 } },
81         { "key_agreement_failure", "Key agreement failed with {nick $0}", 1, { 0 } },
82         { "key_agreement_timeout", "Timeout during key agreement. The key agreement was not performed with {nick $0}", 1, { 0 } },
83         { "key_agreement_aborted", "Key agreement was aborted with {nick $0}", 1, { 0 } },
84         { "pubkey_received", "Received {hilight $0} public key", 1, { 0 } },
85         { "pubkey_fingerprint", "Fingerprint and babbleprint for the {hilight $0} key are %: $1", 2, { 0, 0 } },
86         { "pubkey_babbleprint", " $0", 1, { 0 } },
87         { "pubkey_unsupported", "We don't support {hilight $0} public key type {hilight $1}", 2, { 0, 0 } },
88         { "pubkey_discard", "Will not accept the {hilight $0} key", 1, { 0 } },
89         { "pubkey_accept", "Would you like to accept the key (y/n)? ", 0 },
90         { "pubkey_accept_anyway", "Would you like to accept the key anyway (y/n)? ", 0 },
91         { "pubkey_could_not_load", "Could not load your local copy of the {hilight $0} key", 1, { 0 } },
92         { "pubkey_malformed", "Your local copy of the {hilight $0} key is malformed", 1, { 0 } },
93         { "pubkey_no_match", "{hilight $0} key does not match with your local copy", 1, { 0 } },
94         { "pubkey_maybe_expired", "It is possible that the key has expired or changed", 0 },
95         { "pubkey_mitm_attack", "It is also possible that someone is performing a man-in-the-middle attack", 0 },
96         { "getkey_notkey", "Server did not return any public key", 0 },
97         { "getkey_verified", "Verified successfully $0 {hilight $1}'s cached public key", 2, { 0, 0 } },
98         { "getkey_discard", "Could not verify $0 {hilight $1}'s public key", 2, { 0, 0 } },
99
100         /* Misc messages */
101         { NULL, "Misc", 0 },
102
103         { "server_oper", "You are now {hilight server operator}", 0 },
104         { "router_oper", "You are now {hilight SILC operator}", 0 },
105         { "list_header", "  Channel                              Users   Topic", 0 },
106         { "list", "  %|{channelhilight $[36]0} {hilight $[7]1} $2", 3, { 0, 0, 0 } },
107         { "bad_nick", "Bad nickname {hilight $0}", 1, { 0 } },
108         { "unknown_notify", "Unknown notify type {hilight $0}", 1, { 1 } },
109         { "ke_bad_version", "You are running an incompatible client version (it may be too old or too new) ", 0 },
110         { "ke_unsupported_public_key", "Remote does not trust/support your public key", 0 },
111         { "ke_unknown_group", "Remote does not support one of your proposed KE group", 0 },
112         { "ke_unknown_cipher", "Remote does not support one of your proposed cipher", 0 },
113         { "ke_unknown_pkcs", "Remote does not support one of your proposed PKCS", 0 },
114         { "ke_unknown_hash_function", "Remote does not support one of your proposed hash function", 0 },
115         { "ke_unknown_hmac", "Remote does not support one of your proposed HMAC", 0 },
116         { "ke_incorrect_signature", "Incorrect signature", 0 },
117         { "ke_invalid_cookie", "Invalid cookie", 0 },
118         { "auth_failed", "Authentication failed", 0 },
119         { "set_away", "You have been marked as being away (away message: {hilight $0})", 1, { 0 } },
120         { "unset_away", "You are no longer marked as being away", 0 },
121         { "auth_meth_unresolved", "Could not resolve authentication method to use, assume no authentication", 0 },
122         { "watch_present", "Watch: {nick $0} is now present in the network", 1, { 0 } },
123         { "watch_signoff", "Watch: {nick $0} left the network", 1, { 0 } },
124         { "watch_killed", "Watch: {nick $0} was killed from the network", 1, { 0 } },
125         { "watch_umode_change", "Watch: {nick $0} is now {hilight $1}", 2, { 0, 0 } },
126         { "watch_nick_change", "Watch: {nick $0} changed nickname to {nick $1}", 2, { 0, 0 } },
127         { "message_data", "{nick $0} sent \"{hilight $1}\" data message: cannot display", 2, { 0, 0 } },
128
129         /* File transfer messages */
130         { NULL, "FileTransfer", 0 },
131
132         { "file_send", "File transfer request sent to {nick $0} for $1", 2, { 0, 0 } },
133         { "file_transmit", "Transmitting file {hilight $0} [$1kB] to {nick $2}", 3, { 0, 0, 0 } },
134         { "file_transmitted", "Transmitted file {hilight $0} [$1kB] to {nick $2} [{hilight $3kB/s}]", 4, { 0, 0, 0, 3 } },
135         { "file_receive", "Receiving file {hilight $0} [$1kB] from {nick $2}", 3, { 0, 0 } },
136         { "file_received", "Received file {hilight $0} [$1kB] from {nick $2} [{hilight $3kB/s}]", 4, { 0, 0, 0, 3 } },
137         { "file_request", "File transfer request from {nick $0}", 1, { 0 } },
138         { "file_request_host", "File transfer request from {nick $0} [$1 port $2]", 3, { 0, 0, 0 } },
139         { "file_key_exchange", "Negotiating keys for file transfer with {nick $0}", 1, { 0 } },
140         { "file_na", "No file transfers available", 0 },
141         { "file_client_na", "No file transfer offered by {nick $0}", 1, { 0 } },
142         { "file_show_header", "File transfers", 0 },
143         { "file_show_line", "  $0 $1: $2kB of $3kB ($4%%) - $5kB/s - $6", 7, { 0, 0, 1, 1, 1, 3, 0 } },
144         { "file_already_started", "File transfer already started with {nick $0}", 1, { 0  } },
145         { "file_error", "Error during file transfer with {nick $0}", 1, { 0 } },
146         { "file_error_no_such_file", "Error during file transfer with {nick $0}: $1: No such file", 2, { 0, 0 } },
147         { "file_error_permission_denied", "Error during file transfer with {nick $0}: Permission denied", 1, { 0 } },
148         { "file_close", "File transfer closed with {nick $0} - $1", 2, { 0, 0 } },
149
150         { NULL, NULL, 0 }
151 };