1
by David Pashley
Import upstream version 0.8.10 |
1 |
/*
|
2 |
module-formats.c : irssi
|
|
3 |
||
4 |
Copyright (C) 2000 Timo Sirainen
|
|
5 |
||
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.
|
|
10 |
||
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.
|
|
15 |
||
1.1.2
by Emilio Pozuelo Monfort
Import upstream version 0.8.12 |
16 |
You should have received a copy of the GNU General Public License along
|
17 |
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
18 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
1
by David Pashley
Import upstream version 0.8.10 |
19 |
*/
|
20 |
||
21 |
#include "module.h" |
|
22 |
#include "formats.h" |
|
23 |
||
24 |
FORMAT_REC fecommon_irc_formats[] = { |
|
25 |
{ MODULE_NAME, "IRC", 0 }, |
|
26 |
||
27 |
/* ---- */
|
|
28 |
{ NULL, "Server", 0 }, |
|
29 |
||
30 |
{ "netsplit", "{netsplit Netsplit} {server $0} <-> {server $1} quits: $2", 3, { 0, 0, 0 } }, |
|
31 |
{ "netsplit_more", "{netsplit Netsplit} {server $0} <-> {server $1} quits: $2 (+$3 more, use /NETSPLIT to show all of them)", 4, { 0, 0, 0, 1 } }, |
|
32 |
{ "netsplit_join", "{netjoin Netsplit} over, joins: $0", 1, { 0 } }, |
|
33 |
{ "netsplit_join_more", "{netjoin Netsplit} over, joins: $0 (+$1 more)", 2, { 0, 1 } }, |
|
34 |
{ "no_netsplits", "There are no net splits", 0 }, |
|
35 |
{ "netsplits_header", "%#Nick Channel Server Splitted server", 0 }, |
|
36 |
{ "netsplits_line", "%#$[9]0 $[10]1 $[20]2 $3", 4, { 0, 0, 0, 0 } }, |
|
37 |
{ "netsplits_footer", "", 0 }, |
|
38 |
{ "network_added", "Network $0 saved", 1, { 0 } }, |
|
39 |
{ "network_removed", "Network $0 removed", 1, { 0 } }, |
|
40 |
{ "network_not_found", "Network $0 not found", 1, { 0 } }, |
|
41 |
{ "network_header", "%#Networks:", 0 }, |
|
42 |
{ "network_line", "%#$0: $1", 2, { 0, 0 } }, |
|
43 |
{ "network_footer", "", 0 }, |
|
44 |
{ "setupserver_header", "%#Server Port Network Settings", 0 }, |
|
45 |
{ "setupserver_line", "%#%|$[!20]0 $[5]1 $[10]2 $3", 4, { 0, 1, 0, 0 } }, |
|
46 |
{ "setupserver_footer", "", 0 }, |
|
47 |
||
48 |
/* ---- */
|
|
49 |
{ NULL, "Channels", 0 }, |
|
50 |
||
51 |
{ "joinerror_toomany", "Cannot join to channel {channel $0} (You have joined to too many channels)", 1, { 0 } }, |
|
52 |
{ "joinerror_full", "Cannot join to channel {channel $0} (Channel is full)", 1, { 0 } }, |
|
53 |
{ "joinerror_invite", "Cannot join to channel {channel $0} (You must be invited)", 1, { 0 } }, |
|
54 |
{ "joinerror_banned", "Cannot join to channel {channel $0} (You are banned)", 1, { 0 } }, |
|
55 |
{ "joinerror_bad_key", "Cannot join to channel {channel $0} (Bad channel key)", 1, { 0 } }, |
|
56 |
{ "joinerror_bad_mask", "Cannot join to channel {channel $0} (Bad channel mask)", 1, { 0 } }, |
|
57 |
{ "joinerror_unavail", "Cannot join to channel {channel $0} (Channel is temporarily unavailable)", 1, { 0 } }, |
|
58 |
{ "joinerror_duplicate", "Channel {channel $0} already exists - cannot create it", 1, { 0 } }, |
|
59 |
{ "channel_rejoin", "Channel {channel $0} is temporarily unavailable, this is normally because of netsplits. Irssi will now automatically try to rejoin back to this channel until the join is successful. Use /RMREJOINS command if you wish to abort this.", 1, { 0 } }, |
|
60 |
{ "inviting", "Inviting {nick $0} to {channel $1}", 2, { 0, 0 } }, |
|
61 |
{ "channel_created", "Channel {channelhilight $0} created $1", 2, { 0, 0 } }, |
|
62 |
{ "url", "Home page for {channelhilight $0}: $1", 2, { 0, 0 } }, |
|
63 |
{ "topic", "Topic for {channelhilight $0}: $1", 2, { 0, 0 } }, |
|
64 |
{ "no_topic", "No topic set for {channelhilight $0}", 1, { 0 } }, |
|
65 |
{ "topic_info", "Topic set by {nick $0} {nickhost $2} {comment $1}", 3, { 0, 0, 0 } }, |
|
66 |
{ "chanmode_change", "mode/{channelhilight $0} {mode $1} by {nick $2}", 4, { 0, 0, 0, 0 } }, |
|
67 |
{ "server_chanmode_change", "{netsplit ServerMode}/{channelhilight $0} {mode $1} by {nick $2}", 3, { 0, 0, 0 } }, |
|
68 |
{ "channel_mode", "mode/{channelhilight $0} {mode $1}", 2, { 0, 0 } }, |
|
69 |
{ "bantype", "Ban type changed to {channel $0}", 1, { 0 } }, |
|
70 |
{ "no_bans", "No bans in channel {channel $0}", 1, { 0 } }, |
|
71 |
{ "banlist", "$0 - {channel $1}: ban {ban $2}", 3, { 1, 0, 0 } }, |
|
72 |
{ "banlist_long", "$0 - {channel $1}: ban {ban $2} {comment by {nick $3}, $4 secs ago}", 5, { 1, 0, 0, 0, 1 } }, |
|
73 |
{ "ebanlist", "{channel $0}: ban exception {ban $1}", 2, { 0, 0 } }, |
|
74 |
{ "ebanlist_long", "{channel $0}: ban exception {ban $1} {comment by {nick $2}, $3 secs ago}", 4, { 0, 0, 0, 1 } }, |
|
75 |
{ "no_invitelist", "Invite list is empty in channel {channel $0}", 1, { 0 } }, |
|
76 |
{ "invitelist", "{channel $0}: invite {ban $1}", 2, { 0, 0 } }, |
|
77 |
{ "no_such_channel", "{channel $0}: No such channel", 1, { 0 } }, |
|
78 |
{ "channel_synced", "Join to {channel $0} was synced in {hilight $1} secs", 2, { 0, 2 } }, |
|
79 |
||
80 |
/* ---- */
|
|
81 |
{ NULL, "Nick", 0 }, |
|
82 |
||
83 |
{ "usermode_change", "Mode change {mode $0} for user {nick $1}", 2, { 0, 0 } }, |
|
84 |
{ "user_mode", "Your user mode is {mode $0}", 1, { 0 } }, |
|
85 |
{ "away", "You have been marked as being away", 0 }, |
|
86 |
{ "unaway", "You are no longer marked as being away", 0 }, |
|
87 |
{ "nick_away", "{nick $0} is away: $1", 2, { 0, 0 } }, |
|
88 |
{ "no_such_nick", "{nick $0}: No such nick/channel", 1, { 0 } }, |
|
89 |
{ "nick_in_use", "Nick {nick $0} is already in use", 1, { 0 } }, |
|
90 |
{ "nick_unavailable", "Nick {nick $0} is temporarily unavailable", 1, { 0 } }, |
|
91 |
{ "your_nick_owned", "Your nick is owned by {nick $3} {comment $1@$2}", 4, { 0, 0, 0, 0 } }, |
|
92 |
||
93 |
/* ---- */
|
|
94 |
{ NULL, "Who queries", 0 }, |
|
95 |
||
96 |
{ "whois", "{nick $0} {nickhost $1@$2}%:{whois ircname $3}", 4, { 0, 0, 0, 0 } }, |
|
97 |
{ "whowas", "{nick $0} {nickhost $1@$2}%:{whois was $3}", 4, { 0, 0, 0, 0 } }, |
|
98 |
{ "whois_idle", "{whois idle %|$1 days $2 hours $3 mins $4 secs}", 5, { 0, 1, 1, 1, 1 } }, |
|
99 |
{ "whois_idle_signon", "{whois idle %|$1 days $2 hours $3 mins $4 secs {comment signon: $5}}", 6, { 0, 1, 1, 1, 1, 0 } }, |
|
100 |
{ "whois_server", "{whois server %|$1 {comment $2}}", 3, { 0, 0, 0 } }, |
|
101 |
{ "whois_oper", "{whois {hilight $1}}", 2, { 0, 0 } }, |
|
102 |
{ "whois_modes", " {whois modes $1}", 2, { 0, 0 } }, |
|
103 |
{ "whois_realhost", "{whois hostname $1-}", 3, { 0, 0, 0 } }, |
|
104 |
{ "whois_usermode", "{whois usermode $1}", 2, { 0, 0 } }, |
|
105 |
{ "whois_channels", "{whois channels %|$1}", 2, { 0, 0 } }, |
|
106 |
{ "whois_away", "{whois away %|$1}", 2, { 0, 0 } }, |
|
107 |
{ "whois_special", "{whois %|$1}", 2, { 0, 0 } }, |
|
1.1.2
by Emilio Pozuelo Monfort
Import upstream version 0.8.12 |
108 |
{ "whois_extra", "{whois account %|$1}", 2, { 0, 0 } }, |
1
by David Pashley
Import upstream version 0.8.10 |
109 |
{ "end_of_whois", "End of WHOIS", 1, { 0 } }, |
110 |
{ "end_of_whowas", "End of WHOWAS", 1, { 0 } }, |
|
111 |
{ "whois_not_found", "There is no such nick $0", 1, { 0 } }, |
|
112 |
{ "who", "%#{channelhilight $[-10]0} %|{nick $[!9]1} $[!3]2 $[!2]3 $4@$5 {comment {hilight $6}}", 8, { 0, 0, 0, 0, 0, 0, 0, 0 } }, |
|
113 |
{ "end_of_who", "End of /WHO list", 1, { 0 } }, |
|
114 |
||
115 |
/* ---- */
|
|
116 |
{ NULL, "Your messages", 0 }, |
|
117 |
||
118 |
{ "own_notice", "{ownnotice notice $0}$1", 2, { 0, 0 } }, |
|
119 |
{ "own_action", "{ownaction $0}$1", 3, { 0, 0, 0 } }, |
|
120 |
{ "own_action_target", "{ownaction_target $0 $2}$1", 3, { 0, 0, 0 } }, |
|
121 |
{ "own_ctcp", "{ownctcp ctcp $0}$1 $2", 3, { 0, 0, 0 } }, |
|
122 |
||
123 |
/* ---- */
|
|
124 |
{ NULL, "Received messages", 0 }, |
|
125 |
||
126 |
{ "notice_server", "{servernotice $0}$1", 2, { 0, 0 } }, |
|
127 |
{ "notice_public", "{notice $0{pubnotice_channel $1}}$2", 3, { 0, 0, 0 } }, |
|
128 |
{ "notice_private", "{notice $0{pvtnotice_host $1}}$2", 3, { 0, 0, 0 } }, |
|
129 |
{ "action_private", "{pvtaction $0}$2", 3, { 0, 0, 0 } }, |
|
130 |
{ "action_private_query", "{pvtaction_query $0}$2", 3, { 0, 0, 0 } }, |
|
131 |
{ "action_public", "{pubaction $0}$1", 2, { 0, 0 } }, |
|
132 |
{ "action_public_channel", "{pubaction $0{msgchannel $1}}$2", 3, { 0, 0, 0 } }, |
|
133 |
||
134 |
/* ---- */
|
|
135 |
{ NULL, "CTCPs", 0 }, |
|
136 |
||
137 |
{ "ctcp_reply", "CTCP {hilight $0} reply from {nick $1}: $2", 3, { 0, 0, 0 } }, |
|
138 |
{ "ctcp_reply_channel", "CTCP {hilight $0} reply from {nick $1} in channel {channel $3}: $2", 4, { 0, 0, 0, 0 } }, |
|
139 |
{ "ctcp_ping_reply", "CTCP {hilight PING} reply from {nick $0}: $1.$[-3.0]2 seconds", 3, { 0, 2, 2 } }, |
|
140 |
{ "ctcp_requested", "{ctcp {hilight $0} {comment $1} requested CTCP {hilight $2} from {nick $4}}: $3", 5, { 0, 0, 0, 0, 0 } }, |
|
141 |
{ "ctcp_requested_unknown", "{ctcp {hilight $0} {comment $1} requested unknown CTCP {hilight $2} from {nick $4}}: $3", 5, { 0, 0, 0, 0, 0 } }, |
|
142 |
||
143 |
/* ---- */
|
|
144 |
{ NULL, "Other server events", 0 }, |
|
145 |
||
146 |
{ "online", "Users online: {hilight $0}", 1, { 0 } }, |
|
147 |
{ "pong", "PONG received from $0: $1", 2, { 0, 0 } }, |
|
148 |
{ "wallops", "{wallop WALLOP {wallop_nick $0}} $1", 2, { 0, 0 } }, |
|
149 |
{ "action_wallops", "{wallop WALLOP {wallop_action $0}} $1", 2, { 0, 0 } }, |
|
150 |
{ "kill", "You were {error killed} by {nick $0} {nickhost $1} {reason $2} {comment Path: $3}", 4, { 0, 0, 0, 0 } }, |
|
151 |
{ "kill_server", "You were {error killed} by {server $0} {reason $1} {comment Path: $2}", 3, { 0, 0, 0 } }, |
|
152 |
{ "error", "{error ERROR} $0", 1, { 0 } }, |
|
153 |
{ "unknown_mode", "Unknown mode character $0", 1, { 0 } }, |
|
154 |
{ "default_event", "$1", 3, { 0, 0, 0 } }, |
|
155 |
{ "default_event_server", "[$0] $1", 3, { 0, 0, 0 } }, |
|
156 |
||
157 |
/* ---- */
|
|
158 |
{ NULL, "Misc", 0 }, |
|
159 |
||
160 |
{ "silenced", "Silenced {nick $0}", 1, { 0 } }, |
|
161 |
{ "unsilenced", "Unsilenced {nick $0}", 1, { 0 } }, |
|
162 |
{ "silence_line", "{nick $0}: silence {ban $1}", 2, { 0, 0 } }, |
|
163 |
{ "ask_oper_pass", "Operator password:", 0 }, |
|
1.1.2
by Emilio Pozuelo Monfort
Import upstream version 0.8.12 |
164 |
{ "accept_list", "Accepted users: {hilight $0}", 1, { 0 } }, |
1
by David Pashley
Import upstream version 0.8.10 |
165 |
|
166 |
{ NULL, NULL, 0 } |
|
167 |
};
|