2 module-formats.c : irssi
4 Copyright (C) 2000 Timo Sirainen
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 FORMAT_REC fecommon_core_formats[] = {
25 { MODULE_NAME, "Core", 0 },
28 { NULL, "Windows", 0 },
30 { "line_start", "{line_start}", 0 },
31 { "line_start_irssi", "{line_start}{hilight Irssi:} ", 0 },
32 { "timestamp", "{timestamp $Z} ", 0 },
33 { "servertag", "[$0] ", 1, { 0 } },
34 { "daychange", "Day changed to %%d %%b %%Y", 0 },
35 { "talking_with", "You are now talking with {nick $0}", 1, { 0 } },
36 { "refnum_too_low", "Window number must be greater than 1", 0 },
37 { "error_server_sticky", "Window's server is sticky and it cannot be changed without -unsticky option", 0 },
38 { "set_server_sticky", "Window's server set sticky", 1, { 0 } },
39 { "unset_server_sticky", "Window's server isn't sticky anymore", 0 },
40 { "window_name_not_unique", "Window names must be unique", 1, { 0 } },
41 { "window_level", "Window level is now $0", 1, { 0 } },
42 { "window_set_immortal", "Window is now immortal", 0 },
43 { "window_unset_immortal", "Window isn't immortal anymore", 0 },
44 { "window_immortal_error", "Window is immortal, if you really want to close it, say /WINDOW IMMORTAL OFF", 0 },
45 { "windowlist_header", "%#Ref Name Active item Server Level", 0 },
46 { "windowlist_line", "%#$[3]0 %|$[20]1 $[15]2 $[15]3 $4", 5, { 1, 0, 0, 0, 0 } },
47 { "windowlist_footer", "", 0 },
48 { "windows_layout_saved", "Layout of windows is now remembered next time you start irssi", 0 },
49 { "windows_layout_reset", "Layout of windows reset to defaults", 0 },
50 { "window_info_header", "", 0 },
51 { "window_info_footer", "", 0 },
52 { "window_info_refnum", "%#Window : {hilight #$0}", 1, { 1 } },
53 { "window_info_refnum_sticky", "%#Window : {hilight #$0 (sticky)}", 1, { 1 } },
54 { "window_info_name", "%#Name : $0", 1, { 0 } },
55 { "window_info_history", "%#History : $0", 1, { 0 } },
56 { "window_info_immortal", "%#Immortal: yes", 0 },
57 { "window_info_size", "%#Size : $0x$1", 2, { 1, 1 } },
58 { "window_info_level", "%#Level : $0", 1, { 0 } },
59 { "window_info_server", "%#Server : $0", 1, { 0 } },
60 { "window_info_server_sticky", "%#Server : $0 (sticky)", 1, { 0 } },
61 { "window_info_theme", "%#Theme : $0$1", 2, { 0, 0 } },
62 { "window_info_bound_items_header", "%#Bounds : {hilight Name Server tag}", 0 },
63 { "window_info_bound_item", "%# : $[!30]0 $[!15]1 $2", 3, { 0, 0, 0 } },
64 { "window_info_bound_items_footer", "", 0 },
65 { "window_info_items_header", "%#Items : {hilight Name Server tag}", 0 },
66 { "window_info_item", "%# $[7]0: $[!30]1 $2", 3, { 0, 0, 0 } },
67 { "window_info_items_footer", "", 0 },
70 { NULL, "Server", 0 },
72 { "looking_up", "Looking up {server $0}", 1, { 0 } },
73 { "connecting", "Connecting to {server $0} [$1] port {hilight $2}", 3, { 0, 0, 1 } },
74 { "reconnecting", "Reconnecting to {server $0} [$1] port {hilight $2} - use /RMRECONNS to abort", 3, { 0, 0, 1 } },
75 { "connection_established", "Connection to {server $0} established", 1, { 0 } },
76 { "cant_connect", "Unable to connect server {server $0} port {hilight $1} {reason $2}", 3, { 0, 1, 0 } },
77 { "connection_lost", "Connection lost to {server $0}", 1, { 0 } },
78 { "lag_disconnected", "No PONG reply from server {server $0} in $1 seconds, disconnecting", 2, { 0, 1 } },
79 { "disconnected", "Disconnected from {server $0} {reason $1}", 2, { 0, 0 } },
80 { "server_quit", "Disconnecting from server {server $0}: {reason $1}", 2, { 0, 0 } },
81 { "server_changed", "Changed to {hilight $2} server {server $1}", 3, { 0, 0, 0 } },
82 { "unknown_server_tag", "Unknown server tag {server $0}", 1, { 0 } },
83 { "no_connected_servers", "Not connected to any servers", 0 },
84 { "server_list", "{server $0}: $1:$2 ($3)", 5, { 0, 0, 1, 0, 0 } },
85 { "server_lookup_list", "{server $0}: $1:$2 ($3) (connecting...)", 5, { 0, 0, 1, 0, 0 } },
86 { "server_reconnect_list", "{server $0}: $1:$2 ($3) ($5 left before reconnecting)", 6, { 0, 0, 1, 0, 0, 0 } },
87 { "server_reconnect_removed", "Removed reconnection to server {server $0} port {hilight $1}", 3, { 0, 1, 0 } },
88 { "server_reconnect_not_found", "Reconnection tag {server $0} not found", 1, { 0 } },
89 { "setupserver_added", "Server {server $0} saved", 2, { 0, 1 } },
90 { "setupserver_removed", "Server {server $0} removed", 2, { 0, 1 } },
91 { "setupserver_not_found", "Server {server $0} not found", 2, { 0, 1 } },
92 { "your_nick", "Your nickname is {nick $0}", 1, { 0 } },
95 { NULL, "Channels", 0 },
97 { "join", "{channick_hilight $0} {chanhost_hilight $1} has joined {channel $2}", 3, { 0, 0, 0 } },
98 { "part", "{channick $0} {chanhost $1} has left {channel $2} {reason $3}", 4, { 0, 0, 0, 0 } },
99 { "kick", "{channick $0} was kicked from {channel $1} by {nick $2} {reason $3}", 5, { 0, 0, 0, 0, 0 } },
100 { "quit", "{channick $0} {chanhost $1} has quit {reason $2}", 4, { 0, 0, 0, 0 } },
101 { "quit_once", "{channel $3} {channick $0} {chanhost $1} has quit {reason $2}", 4, { 0, 0, 0, 0 } },
102 { "invite", "{nick $0} invites you to {channel $1}", 3, { 0, 0, 0 } },
103 { "not_invited", "You have not been invited to a channel!", 0 },
104 { "new_topic", "{nick $0} changed the topic of {channel $1} to: $2", 4, { 0, 0, 0, 0 } },
105 { "topic_unset", "Topic unset by {nick $0} on {channel $1}", 4, { 0, 0, 0, 0 } },
106 { "your_nick_changed", "You're now known as {nick $1}", 4, { 0, 0, 0, 0 } },
107 { "nick_changed", "{channick $0} is now known as {channick_hilight $1}", 4, { 0, 0, 0, 0 } },
108 { "talking_in", "You are now talking in {channel $0}", 1, { 0 } },
109 { "not_in_channels", "You are not on any channels", 0 },
110 { "current_channel", "Current channel {channel $0}", 1, { 0 } },
111 { "names", "{names_users Users {names_channel $0}}", 6, { 0, 1, 1, 1, 1, 1 } },
112 { "names_prefix", "%#{names_prefix $0}", 1, { 0 } },
113 { "names_nick_op", "{names_nick_op $0 $1}", 2, { 0, 0 } },
114 { "names_nick_halfop", "{names_nick_halfop $0 $1}", 2, { 0, 0 } },
115 { "names_nick_voice", "{names_nick_voice $0 $1}", 2, { 0, 0 } },
116 { "names_nick", "{names_nick $0 $1}", 2, { 0, 0 } },
117 { "endofnames", "{channel $0}: Total of {hilight $1} nicks {comment {hilight $2} ops, {hilight $3} halfops, {hilight $4} voices, {hilight $5} normal}", 6, { 0, 1, 1, 1, 1, 1 } },
118 { "chanlist_header", "%#You are on the following channels:", 0 },
119 { "chanlist_line", "%#{channel $[-10]0} %|+$1 ($2): $3", 4, { 0, 0, 0, 0 } },
120 { "chansetup_not_found", "Channel {channel $0} not found", 2, { 0, 0 } },
121 { "chansetup_added", "Channel {channel $0} saved", 2, { 0, 0 } },
122 { "chansetup_removed", "Channel {channel $0} removed", 2, { 0, 0 } },
123 { "chansetup_header", "%#Channel Network Password Settings", 0 },
124 { "chansetup_line", "%#{channel $[15]0} %|$[10]1 $[10]2 $3", 4, { 0, 0, 0, 0 } },
125 { "chansetup_footer", "", 0 },
128 { NULL, "Messages", 0 },
130 { "own_msg", "{ownmsgnick $2 {ownnick $0}}$1", 3, { 0, 0, 0 } },
131 { "own_msg_channel", "{ownmsgnick $3 {ownnick $0}{msgchannel $1}}$2", 4, { 0, 0, 0, 0 } },
132 { "own_msg_private", "{ownprivmsg msg $0}$1", 2, { 0, 0 } },
133 { "own_msg_private_query", "{ownprivmsgnick {ownprivnick $2}}$1", 3, { 0, 0, 0 } },
134 { "pubmsg_me", "{pubmsgmenick $2 {menick $0}}$1", 3, { 0, 0, 0 } },
135 { "pubmsg_me_channel", "{pubmsgmenick $3 {menick $0}{msgchannel $1}}$2", 4, { 0, 0, 0, 0 } },
136 { "pubmsg_hilight", "{pubmsghinick $0 $3 $1}$2", 4, { 0, 0, 0, 0 } },
137 { "pubmsg_hilight_channel", "{pubmsghinick $0 $4 $1{msgchannel $2}}$3", 5, { 0, 0, 0, 0, 0 } },
138 { "pubmsg", "{pubmsgnick $2 {pubnick $0}}$1", 3, { 0, 0, 0 } },
139 { "pubmsg_channel", "{pubmsgnick $3 {pubnick $0}{msgchannel $1}}$2", 4, { 0, 0, 0, 0 } },
140 { "msg_private", "{privmsg $0 $1}$2", 3, { 0, 0, 0 } },
141 { "msg_private_query", "{privmsgnick $0}$2", 3, { 0, 0, 0 } },
142 { "no_msgs_got", "You have not received a message from anyone yet", 0 },
143 { "no_msgs_sent", "You have not sent a message to anyone yet", 0 },
146 { NULL, "Queries", 0 },
148 { "query_start", "Starting query in {server $1} with {nick $0}", 2, { 0, 0 } },
149 { "query_stop", "Closing query with {nick $0}", 1, { 0 } },
150 { "no_query", "No query with {nick $0}", 1, { 0 } },
151 { "query_server_changed", "Query with {nick $0} changed to server {server $1}", 2, { 0, 0 } },
154 { NULL, "Highlighting", 0 },
156 { "hilight_header", "%#Highlights:", 0 },
157 { "hilight_line", "%#$[-4]0 $1 $2 $3$4", 5, { 1, 0, 0, 0, 0 } },
158 { "hilight_footer", "", 0 },
159 { "hilight_not_found", "Highlight not found: $0", 1, { 0 } },
160 { "hilight_removed", "Highlight removed: $0", 1, { 0 } },
163 { NULL, "Aliases", 0 },
165 { "alias_added", "Alias $0 added", 1, { 0 } },
166 { "alias_removed", "Alias $0 removed", 1, { 0 } },
167 { "alias_not_found", "No such alias: $0", 1, { 0 } },
168 { "aliaslist_header", "%#Aliases:", 0 },
169 { "aliaslist_line", "%#$[10]0 $1", 2, { 0, 0 } },
170 { "aliaslist_footer", "", 0 },
173 { NULL, "Logging", 0 },
175 { "log_opened", "Log file {hilight $0} opened", 1, { 0 } },
176 { "log_closed", "Log file {hilight $0} closed", 1, { 0 } },
177 { "log_create_failed", "Couldn't create log file {hilight $0}: $1", 2, { 0, 0 } },
178 { "log_locked", "Log file {hilight $0} is locked, probably by another running Irssi", 1, { 0 } },
179 { "log_not_open", "Log file {hilight $0} not open", 1, { 0 } },
180 { "log_started", "Started logging to file {hilight $0}", 1, { 0 } },
181 { "log_stopped", "Stopped logging to file {hilight $0}", 1, { 0 } },
182 { "log_list_header", "%#Logs:", 0 },
183 { "log_list", "%#$0 $1: $2 $3$4", 5, { 1, 0, 0, 0, 0, 0 } },
184 { "log_list_footer", "", 0 },
185 { "windowlog_file", "Window LOGFILE set to $0", 1, { 0 } },
186 { "windowlog_file_logging", "Can't change window's logfile while log is on", 0 },
187 { "no_away_msgs", "No new messages in awaylog", 1, { 0 } },
188 { "away_msgs", "{hilight $1} new messages in awaylog:", 2, { 0, 1 } },
191 { NULL, "Modules", 0 },
193 { "module_header", "%#Module Type Submodules", 0, },
194 { "module_line", "%#$[!20]0 $[7]1 $2", 3, { 0, 0, 0 } },
195 { "module_footer", "", 0, },
196 { "module_already_loaded", "Module {hilight $0/$1} already loaded", 2, { 0, 0 } },
197 { "module_not_loaded", "Module {hilight $0/$1} is not loaded", 2, { 0, 0 } },
198 { "module_load_error", "Error loading module {hilight $0/$1}: $2", 3, { 0, 0, 0 } },
199 { "module_invalid", "{hilight $0/$1} isn't Irssi module", 2, { 0, 0 } },
200 { "module_loaded", "Loaded module {hilight $0/$1}", 2, { 0, 0 } },
201 { "module_unloaded", "Unloaded module {hilight $0/$1}", 2, { 0, 0 } },
204 { NULL, "Commands", 0 },
206 { "command_unknown", "Unknown command: $0", 1, { 0 } },
207 { "command_ambiguous", "Ambiguous command: $0", 1, { 0 } },
208 { "option_unknown", "Unknown option: $0", 1, { 0 } },
209 { "option_ambiguous", "Ambiguous option: $0", 1, { 0 } },
210 { "option_missing_arg", "Missing required argument for: $0", 1, { 0 } },
211 { "not_enough_params", "Not enough parameters given", 0 },
212 { "not_connected", "Not connected to server", 0 },
213 { "not_joined", "Not joined to any channel", 0 },
214 { "chan_not_found", "Not joined to such channel", 0 },
215 { "chan_not_synced", "Channel not fully synchronized yet, try again after a while", 0 },
216 { "illegal_proto", "Command isn't designed for the chat protocol of the active server", 0 },
217 { "not_good_idea", "Doing this is not a good idea. Add -YES option to command if you really mean it", 0 },
218 { "invalid_time", "Invalid timestamp", 0 },
219 { "invalid_level", "Invalid message level", 0 },
220 { "invalid_size", "Invalid size", 0 },
221 { "invalid_charset", "Invalid charset: $0", 1, { 0 } },
222 { "eval_max_recurse", "/eval hit maximum recursion limit", 0 },
223 { "program_not_found", "Could not find file or file is not executable", 0 },
226 { NULL, "Themes", 0 },
228 { "theme_saved", "Theme saved to $0", 1, { 0 } },
229 { "theme_save_failed", "Error saving theme to $0: $1", 2, { 0, 0 } },
230 { "theme_not_found", "Theme {hilight $0} not found", 1, { 0 } },
231 { "theme_changed", "Using now theme {hilight $0} ($1)", 2, { 0, 0 } },
232 { "window_theme", "Using theme {hilight $0} in this window", 2, { 0, 0 } },
233 { "window_theme_default", "No theme is set for this window", 0 },
234 { "window_theme_changed", "Using now theme {hilight $0} ($1) in this window", 2, { 0, 0 } },
235 { "window_theme_removed", "Removed theme from this window", 0 },
236 { "format_title", "%:[{hilight $0}] - [{hilight $1}]%:", 2, { 0, 0 } },
237 { "format_subtitle", "[{hilight $0}]", 1, { 0 } },
238 { "format_item", "$0 = $1", 2, { 0, 0 } },
241 { NULL, "Ignores", 0 },
243 { "ignored", "Ignoring {hilight $1} from {nick $0}", 2, { 0, 0 } },
244 { "ignored_options", "Ignoring {hilight $1} from {nick $0} {comment $2}", 3, { 0, 0, 0 } },
245 { "unignored", "Unignored {nick $0}", 1, { 0 } },
246 { "ignore_not_found", "{nick $0} is not being ignored", 1, { 0 } },
247 { "ignore_no_ignores", "There are no ignores", 0 },
248 { "ignore_header", "%#Ignorance List:", 0 },
249 { "ignore_line", "%#$[-4]0 $1: $2 $3 $4", 4, { 1, 0, 0, 0 } },
250 { "ignore_footer", "", 0 },
253 { NULL, "Recode", 0 },
255 { "not_channel_or_query", "The current window is not a channel or query window", 0 },
256 { "conversion_added", "Added {hilight $0}/{hilight $1} to conversion database", 2, { FORMAT_STRING, FORMAT_STRING } },
257 { "conversion_removed", "Removed {hilight $0} from conversion database", 1, { FORMAT_STRING } },
258 { "conversion_not_found", "{hilight $0} not found in conversion database", 1, { FORMAT_STRING } },
259 { "conversion_no_translits", "Transliterations not supported in this system", 0 },
260 { "recode_header", "%#Target Character set", 0 },
261 { "recode_line", "%#%|$[!30]0 $1", 2, { FORMAT_STRING, FORMAT_STRING } },
266 { "unknown_chat_protocol", "Unknown chat protocol: $0", 1, { 0 } },
267 { "unknown_chatnet", "Unknown chat network: $0 (create it with /NETWORK ADD)", 1, { 0 } },
268 { "not_toggle", "Value must be either ON, OFF or TOGGLE", 0 },
269 { "perl_error", "Perl error: $0", 1, { 0 } },
270 { "bind_header", "%#Key Action", 0 },
271 { "bind_list", "%#$[!20]0 $1 $2", 3, { 0, 0, 0 } },
272 { "bind_footer", "", 0 },
273 { "bind_unknown_id", "Unknown bind action: $0", 1, { 0 } },
274 { "config_saved", "Saved configuration to file $0", 1, { 0 } },
275 { "config_reloaded", "Reloaded configuration", 1, { 0 } },
276 { "config_modified", "Configuration file was modified since irssi was last started - do you want to overwrite the possible changes?", 1, { 0 } },
277 { "glib_error", "{error $0} $1", 2, { 0, 0 } },
278 { "overwrite_config", "Overwrite config (y/N)?", 0 },
279 { "set_title", "[{hilight $0}]", 1, { 0 } },
280 { "set_item", "$0 = $1", 2, { 0, 0 } },
281 { "set_unknown", "Unknown setting $0", 1, { 0 } },
282 { "set_not_boolean", "Setting {hilight $0} isn't boolean, use /SET", 1, { 0 } },
283 { "translation_not_found", "Error opening translation table file $0: $1", 2, { 0, 0 } },
284 { "translation_file_error", "Error parsing translation table file $0", 1, { 0 } },
285 { "no_completions", "There's no completions", 0 },
286 { "completion_removed", "Removed completion $0", 1, { 0 } },
287 { "completion_header", "%#Key Value Auto", 0 },
288 { "completion_line", "%#$[10]0 $[!40]1 $2", 3, { 0, 0, 0 } },
289 { "completion_footer", "", 0 },