2000-04-26 04:03:38 -04:00
|
|
|
/*
|
|
|
|
module-formats.c : irssi
|
|
|
|
|
|
|
|
Copyright (C) 2000 Timo Sirainen
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "module.h"
|
2000-10-28 16:14:19 -04:00
|
|
|
#include "formats.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
FORMAT_REC fecommon_core_formats[] = {
|
|
|
|
{ MODULE_NAME, "Core", 0 },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Windows", 0 },
|
|
|
|
|
2000-11-20 22:00:05 -05:00
|
|
|
{ "line_start", "{line_start}", 0 },
|
|
|
|
{ "line_start_irssi", "{line_start}{hilight Irssi:} ", 0 },
|
2001-01-27 23:03:56 -05:00
|
|
|
{ "timestamp", "{timestamp $Z} ", 6, { 1, 1, 1, 1, 1, 1 } },
|
2000-06-30 15:49:12 -04:00
|
|
|
{ "servertag", "[$0] ", 1, { 0 } },
|
|
|
|
{ "daychange", "Day changed to $[-2.0]{0} $3 $2", 4, { 1, 1, 1, 0 } },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "talking_with", "You are now talking with {nick $0}", 1, { 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "refnum_too_low", "Window number must be greater than 1", 0 },
|
2001-02-09 22:10:30 -05:00
|
|
|
{ "error_server_sticky", "Window's server is sticky and it cannot be changed without -unsticky option", 0 },
|
|
|
|
{ "set_server_sticky", "Window's server set sticky", 1, { 0 } },
|
|
|
|
{ "unset_server_sticky", "Window's server isn't sticky anymore", 1, { 0 } },
|
2001-01-27 22:52:29 -05:00
|
|
|
{ "window_level", "Window level is now $0", 1, { 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "windowlist_header", "Ref Name Active item Server Level", 0 },
|
|
|
|
{ "windowlist_line", "$[3]0 %|$[20]1 $[15]2 $[15]3 $4", 5, { 1, 0, 0, 0, 0 } },
|
|
|
|
{ "windowlist_footer", "", 0 },
|
2001-02-21 14:19:24 -05:00
|
|
|
{ "windows_layout_saved", "Layout of windows is now remembered next time you start irssi", 0 },
|
|
|
|
{ "windows_layout_reset", "Layout of windows reset to defaults", 0 },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Server", 0 },
|
|
|
|
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "looking_up", "Looking up {server $0}", 1, { 0 } },
|
|
|
|
{ "connecting", "Connecting to {server $0} [$1] port {hilight $2}", 3, { 0, 0, 1 } },
|
|
|
|
{ "connection_established", "Connection to {server $0} established", 1, { 0 } },
|
|
|
|
{ "cant_connect", "Unable to connect server {server $0} port {hilight $1} {reason $2}", 3, { 0, 1, 0 } },
|
|
|
|
{ "connection_lost", "Connection lost to {server $0}", 1, { 0 } },
|
|
|
|
{ "lag_disconnected", "No PONG reply from server {server $0} in $1 seconds, disconnecting", 2, { 0, 1 } },
|
|
|
|
{ "disconnected", "Disconnected from {server $0} {reason $1}", 2, { 0, 0 } },
|
|
|
|
{ "server_quit", "Disconnecting from server {server $0}: {reason $1}", 2, { 0, 0 } },
|
|
|
|
{ "server_changed", "Changed to {hilight $2} server {server $1}", 3, { 0, 0, 0 } },
|
|
|
|
{ "unknown_server_tag", "Unknown server tag {server $0}", 1, { 0 } },
|
2001-02-19 09:50:53 -05:00
|
|
|
{ "no_connected_servers", "Not connected to any servers", 0 },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "server_list", "{server $0}: $1:$2 ($3)", 5, { 0, 0, 1, 0, 0 } },
|
|
|
|
{ "server_lookup_list", "{server $0}: $1:$2 ($3) (connecting...)", 5, { 0, 0, 1, 0, 0 } },
|
|
|
|
{ "server_reconnect_list", "{server $0}: $1:$2 ($3) ($5 left before reconnecting)", 6, { 0, 0, 1, 0, 0, 0 } },
|
|
|
|
{ "server_reconnect_removed", "Removed reconnection to server {server $0} port {hilight $1}", 3, { 0, 1, 0 } },
|
|
|
|
{ "server_reconnect_not_found", "Reconnection tag {server $0} not found", 1, { 0 } },
|
|
|
|
{ "setupserver_added", "Server {server $0} saved", 2, { 0, 1 } },
|
|
|
|
{ "setupserver_removed", "Server {server $0} removed", 2, { 0, 1 } },
|
|
|
|
{ "setupserver_not_found", "Server {server $0} not found", 2, { 0, 1 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-09-02 14:53:58 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Channels", 0 },
|
|
|
|
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "join", "{channick_hilight $0} {chanhost_hilight $1} has joined {channel $2}", 3, { 0, 0, 0 } },
|
|
|
|
{ "part", "{channick $0} {chanhost $1} has left {channel $2} {reason $3}", 4, { 0, 0, 0, 0 } },
|
|
|
|
{ "kick", "{channick $0} was kicked from {channel $1} by {nick $2} {reason $3}", 4, { 0, 0, 0, 0 } },
|
2001-01-16 14:18:39 -05:00
|
|
|
{ "quit", "{channick $0} {chanhost $1} has quit {reason $2}", 4, { 0, 0, 0, 0 } },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "quit_once", "{channel $3} {channick $0} {chanhost $1} has quit {reason $2}", 4, { 0, 0, 0, 0 } },
|
|
|
|
{ "invite", "{nick $0} invites you to {channel $1}", 2, { 0, 0 } },
|
|
|
|
{ "new_topic", "{nick $0} changed the topic of {channel $1} to: $2", 3, { 0, 0, 0 } },
|
|
|
|
{ "topic_unset", "Topic unset by {nick $0} on {channel $1}", 2, { 0, 0 } },
|
2001-01-16 14:18:39 -05:00
|
|
|
{ "your_nick_changed", "You're now known as {nick $1}", 3, { 0, 0, 0 } },
|
|
|
|
{ "nick_changed", "{channick $0} is now known as {channick_hilight $1}", 3, { 0, 0, 0 } },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "talking_in", "You are now talking in {channel $0}", 1, { 0 } },
|
2000-09-02 14:53:58 -04:00
|
|
|
{ "not_in_channels", "You are not on any channels", 0 },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "current_channel", "Current channel {channel $0}", 1, { 0 } },
|
2001-01-28 10:46:00 -05:00
|
|
|
{ "names", "{names_users Users {names_channel $0}} $1", 2, { 0, 0 } },
|
|
|
|
{ "names_nick", "{names_nick $0 $1}", 2, { 0, 0 } },
|
|
|
|
{ "endofnames", "{channel $0}: Total of {hilight $1} nicks {comment {hilight $2} ops, {hilight $3} voices, {hilight $4} normal}", 5, { 0, 1, 1, 1, 1 } },
|
2000-09-02 14:53:58 -04:00
|
|
|
{ "chanlist_header", "You are on the following channels:", 0 },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "chanlist_line", "{channel $[-10]0} %|+$1 ($2): $3", 4, { 0, 0, 0, 0 } },
|
|
|
|
{ "chansetup_not_found", "Channel {channel $0} not found", 2, { 0, 0 } },
|
|
|
|
{ "chansetup_added", "Channel {channel $0} saved", 2, { 0, 0 } },
|
|
|
|
{ "chansetup_removed", "Channel {channel $0} removed", 2, { 0, 0 } },
|
2000-09-02 14:53:58 -04:00
|
|
|
{ "chansetup_header", "Channel IRC net Password Settings", 0 },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "chansetup_line", "{channel $[15]0} %|$[10]1 $[10]2 $3", 4, { 0, 0, 0, 0 } },
|
2000-09-02 14:53:58 -04:00
|
|
|
{ "chansetup_footer", "", 0 },
|
2001-03-03 16:51:57 -05:00
|
|
|
{ "channel_move_notify", "{channel $0} is already joined in window $1, use \"/WINDOW ITEM MOVE $0\" to move it to this window", 2, { 0, 1 } },
|
2000-09-02 14:53:58 -04:00
|
|
|
|
2000-09-30 18:49:48 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Messages", 0 },
|
|
|
|
|
2001-01-07 02:48:56 -05:00
|
|
|
{ "own_msg", "{ownmsgnick $2 {ownnick $0}}$1", 3, { 0, 0, 0 } },
|
|
|
|
{ "own_msg_channel", "{ownmsgnick $3 {ownnick $0}{msgchannel $1}}$2", 4, { 0, 0, 0, 0 } },
|
2000-12-02 21:20:38 -05:00
|
|
|
{ "own_msg_private", "{ownprivmsg msg $0}$1", 2, { 0, 0 } },
|
2001-01-06 16:57:06 -05:00
|
|
|
{ "own_msg_private_query", "{ownprivmsgnick {ownprivnick $2}}$1", 3, { 0, 0, 0 } },
|
2001-01-07 02:48:56 -05:00
|
|
|
{ "pubmsg_me", "{pubmsgmenick $2 {menick $0}}$1", 3, { 0, 0, 0 } },
|
|
|
|
{ "pubmsg_me_channel", "{pubmsgmenick $3 {menick $0}{msgchannel $1}}$2", 4, { 0, 0, 0, 0 } },
|
2000-12-02 21:20:38 -05:00
|
|
|
{ "pubmsg_hilight", "{pubmsghinick $0 $3 $1}$2", 4, { 0, 0, 0, 0 } },
|
|
|
|
{ "pubmsg_hilight_channel", "{pubmsghinick $0 $4 $1{msgchannel $2}}$3", 5, { 0, 0, 0, 0, 0 } },
|
2001-01-07 02:48:56 -05:00
|
|
|
{ "pubmsg", "{pubmsgnick $2 {pubnick $0}}$1", 3, { 0, 0, 0 } },
|
|
|
|
{ "pubmsg_channel", "{pubmsgnick $3 {pubnick $0}{msgchannel $1}}$2", 4, { 0, 0, 0, 0 } },
|
2000-12-02 21:20:38 -05:00
|
|
|
{ "msg_private", "{privmsg $0 $1}$2", 3, { 0, 0, 0 } },
|
|
|
|
{ "msg_private_query", "{privmsgnick $0}$2", 3, { 0, 0, 0 } },
|
2000-09-30 18:49:48 -04:00
|
|
|
{ "no_msgs_got", "You have not received a message from anyone yet", 0 },
|
|
|
|
{ "no_msgs_sent", "You have not sent a message to anyone yet", 0 },
|
|
|
|
|
2000-09-02 14:53:58 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Queries", 0 },
|
|
|
|
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "query_start", "Starting query with {nick $0}", 1, { 0 } },
|
|
|
|
{ "no_query", "No query with {nick $0}", 1, { 0 } },
|
2000-12-16 21:20:22 -05:00
|
|
|
{ "query_server_changed", "Query with {nick $0} changed to server {server $1}", 2, { 0, 0 } },
|
2001-03-03 16:51:57 -05:00
|
|
|
{ "query_move_notify", "Query with {nick $0} is already created to window $1, use \"/WINDOW ITEM MOVE $0\" to move it to this window", 2, { 0, 1 } },
|
2000-09-02 14:53:58 -04:00
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Highlighting", 0 },
|
|
|
|
|
|
|
|
{ "hilight_header", "Highlights:", 0 },
|
2000-06-04 17:11:53 -04:00
|
|
|
{ "hilight_line", "$[-4]0 $1 $2 $3$4$5", 7, { 1, 0, 0, 0, 0, 0, 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "hilight_footer", "", 0 },
|
|
|
|
{ "hilight_not_found", "Highlight not found: $0", 1, { 0 } },
|
|
|
|
{ "hilight_removed", "Highlight removed: $0", 1, { 0 } },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Aliases", 0 },
|
|
|
|
|
|
|
|
{ "alias_added", "Alias $0 added", 1, { 0 } },
|
|
|
|
{ "alias_removed", "Alias $0 removed", 1, { 0 } },
|
|
|
|
{ "alias_not_found", "No such alias: $0", 1, { 0 } },
|
|
|
|
{ "aliaslist_header", "Aliases:", 0 },
|
|
|
|
{ "aliaslist_line", "$[10]0 $1", 2, { 0, 0 } },
|
|
|
|
{ "aliaslist_footer", "", 0 },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Logging", 0 },
|
|
|
|
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "log_opened", "Log file {hilight $0} opened", 1, { 0 } },
|
|
|
|
{ "log_closed", "Log file {hilight $0} closed", 1, { 0 } },
|
|
|
|
{ "log_create_failed", "Couldn't create log file {hilight $0}: $1", 2, { 0, 0 } },
|
|
|
|
{ "log_locked", "Log file {hilight $0} is locked, probably by another running Irssi", 1, { 0 } },
|
|
|
|
{ "log_not_open", "Log file {hilight $0} not open", 1, { 0 } },
|
|
|
|
{ "log_started", "Started logging to file {hilight $0}", 1, { 0 } },
|
|
|
|
{ "log_stopped", "Stopped logging to file {hilight $0}", 1, { 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "log_list_header", "Logs:", 0 },
|
2000-08-11 18:07:42 -04:00
|
|
|
{ "log_list", "$0 $1: $2 $3$4", 5, { 1, 0, 0, 0, 0, 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "log_list_footer", "", 0 },
|
|
|
|
{ "windowlog_file", "Window LOGFILE set to $0", 1, { 0 } },
|
|
|
|
{ "windowlog_file_logging", "Can't change window's logfile while log is on", 0 },
|
2000-06-01 21:15:51 -04:00
|
|
|
{ "no_away_msgs", "No new messages in awaylog", 1, { 0 } },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "away_msgs", "{hilight $1} new messages in awaylog:", 2, { 0, 1 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-07-02 18:04:00 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Modules", 0 },
|
|
|
|
|
2001-01-09 12:25:21 -05:00
|
|
|
{ "module_header", "Loaded modules:", 0, },
|
|
|
|
{ "module_line", " $0", 1, { 0 } },
|
|
|
|
{ "module_footer", "", 0, },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "module_already_loaded", "Module {hilight $0} already loaded", 1, { 0 } },
|
|
|
|
{ "module_load_error", "Error loading module {hilight $0}: $1", 2, { 0, 0 } },
|
|
|
|
{ "module_invalid", "{hilight $0} isn't Irssi module", 1, { 0 } },
|
|
|
|
{ "module_loaded", "Loaded module {hilight $0}", 1, { 0 } },
|
|
|
|
{ "module_unloaded", "Unloaded module {hilight $0}", 1, { 0 } },
|
2000-07-02 18:04:00 -04:00
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
/* ---- */
|
2000-07-08 18:31:11 -04:00
|
|
|
{ NULL, "Commands", 0 },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-07-08 18:31:11 -04:00
|
|
|
{ "command_unknown", "Unknown command: $0", 1, { 0 } },
|
|
|
|
{ "command_ambiguous", "Ambiguous command: $0", 1, { 0 } },
|
2000-06-28 11:36:57 -04:00
|
|
|
{ "option_unknown", "Unknown option: $0", 1, { 0 } },
|
|
|
|
{ "option_ambiguous", "Ambiguous option: $0", 1, { 0 } },
|
|
|
|
{ "option_missing_arg", "Missing required argument for: $0", 1, { 0 } },
|
2000-06-28 13:15:37 -04:00
|
|
|
{ "not_enough_params", "Not enough parameters given", 0 },
|
2001-02-19 09:50:53 -05:00
|
|
|
{ "not_connected", "Not connected to server", 0 },
|
|
|
|
{ "not_joined", "Not joined to any channel", 0 },
|
2000-06-28 13:15:37 -04:00
|
|
|
{ "chan_not_found", "Not joined to such channel", 0 },
|
|
|
|
{ "chan_not_synced", "Channel not fully synchronized yet, try again after a while", 0 },
|
|
|
|
{ "not_good_idea", "Doing this is not a good idea. Add -YES if you really mean it", 0 },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-07-08 18:31:11 -04:00
|
|
|
/* ---- */
|
2000-07-31 17:16:09 -04:00
|
|
|
{ NULL, "Themes", 0 },
|
2000-07-08 18:31:11 -04:00
|
|
|
|
2000-07-31 19:13:11 -04:00
|
|
|
{ "theme_saved", "Theme saved to $0", 1, { 0 } },
|
2000-12-16 18:36:42 -05:00
|
|
|
{ "theme_save_failed", "Error saving theme to $0: $1", 2, { 0, 0 } },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "theme_not_found", "Theme {hilight $0} not found", 1, { 0 } },
|
2001-02-19 20:12:47 -05:00
|
|
|
{ "theme_changed", "Using now theme {hilight $0} ($1)", 2, { 0, 0 } },
|
2001-06-27 17:16:43 -04:00
|
|
|
{ "window_theme", "Using theme {hilight $0} in this window", 2, { 0, 0 } },
|
|
|
|
{ "window_theme_default", "No theme is set for this window", 0 },
|
|
|
|
{ "window_theme_changed", "Using now theme {hilight $0} ($1) in this window", 2, { 0, 0 } },
|
|
|
|
{ "window_theme_removed", "Removed theme from this window", 0 },
|
2000-11-12 15:20:05 -05:00
|
|
|
{ "format_title", "%:[{hilight $0}] - [{hilight $1}]%:", 2, { 0, 0 } },
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "format_subtitle", "[{hilight $0}]", 1, { 0 } },
|
|
|
|
{ "format_item", "$0 = $1", 2, { 0, 0 } },
|
2000-07-31 17:16:09 -04:00
|
|
|
|
2000-10-13 18:26:33 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Ignores", 0 },
|
|
|
|
|
2000-10-27 21:52:16 -04:00
|
|
|
{ "ignored", "Ignoring {hilight $1} from {nick $0}", 2, { 0, 0 } },
|
|
|
|
{ "unignored", "Unignored {nick $0}", 1, { 0 } },
|
|
|
|
{ "ignore_not_found", "{nick $0} is not being ignored", 1, { 0 } },
|
2000-10-13 18:26:33 -04:00
|
|
|
{ "ignore_no_ignores", "There are no ignores", 0 },
|
|
|
|
{ "ignore_header", "Ignorance List:", 0 },
|
|
|
|
{ "ignore_line", "$[-4]0 $1: $2 $3 $4", 4, { 1, 0, 0, 0 } },
|
|
|
|
{ "ignore_footer", "", 0 },
|
|
|
|
|
2000-07-31 17:16:09 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Misc", 0 },
|
|
|
|
|
2001-02-18 21:50:08 -05:00
|
|
|
{ "unknown_chat_protocol", "Unknown chat protocol: $0", 1, { 0 } },
|
2001-02-17 14:44:22 -05:00
|
|
|
{ "unknown_chatnet", "Unknown chat network: $0", 1, { 0 } },
|
2000-07-08 18:31:11 -04:00
|
|
|
{ "not_toggle", "Value must be either ON, OFF or TOGGLE", 0 },
|
|
|
|
{ "perl_error", "Perl error: $0", 1, { 0 } },
|
|
|
|
{ "bind_key", "$[10]0 $1 $2", 3, { 0, 0, 0 } },
|
|
|
|
{ "bind_unknown_id", "Unknown bind action: $0", 1, { 0 } },
|
2000-07-22 18:05:29 -04:00
|
|
|
{ "config_saved", "Saved configuration to file $0", 1, { 0 } },
|
|
|
|
{ "config_reloaded", "Reloaded configuration", 1, { 0 } },
|
2000-10-15 15:21:21 -04:00
|
|
|
{ "config_modified", "Configuration file was modified since irssi was last started - do you want to overwrite the possible changes?", 1, { 0 } },
|
2001-01-09 12:25:21 -05:00
|
|
|
{ "glib_error", "{error GLib $0} $1", 2, { 0, 0 } },
|
2001-05-17 16:13:59 -04:00
|
|
|
{ "overwrite_config", "Overwrite config (y/N)?", 0 },
|
2001-05-26 15:20:45 -04:00
|
|
|
{ "set_title", "[{hilight $0}]", 1, { 0 } },
|
|
|
|
{ "set_item", "$0 = $1", 2, { 0, 0 } },
|
|
|
|
{ "set_unknown", "Unknown setting $0", 1, { 0 } },
|
|
|
|
{ "set_not_boolean", "Setting {hilight $0} isn't boolean, use /SET", 1, { 0 } },
|
2000-07-08 18:31:11 -04:00
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
{ NULL, NULL, 0 }
|
2000-04-26 04:03:38 -04:00
|
|
|
};
|