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_irc_formats [ ] = {
{ MODULE_NAME , " IRC " , 0 } ,
/* ---- */
{ NULL , " Server " , 0 } ,
2000-10-27 21:52:16 -04:00
{ " netsplit " , " {netsplit Netsplit} {server $0} {server $1} quits: $2 " , 3 , { 0 , 0 , 0 } } ,
{ " netsplit_more " , " {netsplit Netsplit} {server $0} {server $1} quits: $2 (+$3 more, use /NETSPLIT to show all of them) " , 4 , { 0 , 0 , 0 , 1 } } ,
{ " netsplit_join " , " {netjoin Netsplit} over, joins: $0 " , 1 , { 0 } } ,
{ " netsplit_join_more " , " {netjoin Netsplit} over, joins: $0 (+$1 more) " , 2 , { 0 , 1 } } ,
2000-05-15 04:25:45 -04:00
{ " no_netsplits " , " There are no net splits " , 0 } ,
{ " netsplits_header " , " Nick Channel Server Splitted server " , 0 } ,
2000-11-26 00:33:51 -05:00
{ " netsplits_line " , " $[9]0 $[10]1 $[20]2 $3 " , 4 , { 0 , 0 , 0 , 0 } } ,
2000-05-15 04:25:45 -04:00
{ " netsplits_footer " , " " , 0 } ,
2000-06-04 10:52:47 -04:00
{ " ircnet_added " , " Ircnet $0 saved " , 1 , { 0 } } ,
2000-11-26 00:33:51 -05:00
{ " ircnet_removed " , " Ircnet $0 removed " , 1 , { 0 } } ,
2000-06-04 10:52:47 -04:00
{ " ircnet_not_found " , " Ircnet $0 not found " , 1 , { 0 } } ,
{ " ircnet_header " , " Ircnets: " , 0 } ,
{ " ircnet_line " , " $0: $1 " , 2 , { 0 , 0 } } ,
{ " ircnet_footer " , " " , 0 } ,
2000-09-06 17:30:56 -04:00
{ " setupserver_header " , " Server Port IRC Net Settings " , 0 } ,
{ " setupserver_line " , " %|$[!20]0 $[5]1 $[10]2 $3 " , 4 , { 0 , 1 , 0 , 0 } } ,
{ " setupserver_footer " , " " , 0 } ,
2000-05-15 04:25:45 -04:00
/* ---- */
{ NULL , " Channels " , 0 } ,
2000-10-27 21:52:16 -04:00
{ " joinerror_toomany " , " Cannot join to channel {channel $0} (You have joined to too many channels) " , 1 , { 0 } } ,
{ " joinerror_full " , " Cannot join to channel {channel $0} (Channel is full) " , 1 , { 0 } } ,
{ " joinerror_invite " , " Cannot join to channel {channel $0} (You must be invited) " , 1 , { 0 } } ,
{ " joinerror_banned " , " Cannot join to channel {channel $0} (You are banned) " , 1 , { 0 } } ,
{ " joinerror_bad_key " , " Cannot join to channel {channel $0} (Bad channel key) " , 1 , { 0 } } ,
{ " joinerror_bad_mask " , " Cannot join to channel {channel $0} (Bad channel mask) " , 1 , { 0 } } ,
{ " joinerror_unavail " , " Cannot join to channel {channel $0} (Channel is temporarily unavailable) " , 1 , { 0 } } ,
{ " joinerror_duplicate " , " Channel {channel $0} already exists - cannot create it " , 1 , { 0 } } ,
{ " 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 } } ,
{ " inviting " , " Inviting {nick $0} to {channel $1} " , 2 , { 0 , 0 } } ,
2000-05-15 04:25:45 -04:00
{ " not_invited " , " You have not been invited to a channel! " , 0 } ,
2000-12-02 21:28:01 -05:00
{ " names " , " {names_users Users {names_channel $0}} $1 " , 2 , { 0 , 0 } } ,
2000-12-02 21:20:38 -05:00
{ " 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-10-27 21:52:16 -04:00
{ " channel_created " , " Channel {channelhilight $0} created $1 " , 2 , { 0 , 0 } } ,
{ " url " , " Home page for {channelhilight $0}: $1 " , 2 , { 0 , 0 } } ,
{ " topic " , " Topic for {channelhilight $0}: $1 " , 2 , { 0 , 0 } } ,
{ " no_topic " , " No topic set for {channelhilight $0} " , 1 , { 0 } } ,
2000-12-02 21:20:38 -05:00
{ " topic_info " , " Topic set by {nick $0} {comment $1} " , 2 , { 0 , 0 } } ,
{ " chanmode_change " , " mode/{channelhilight $0} {mode $1} by {nick $2} " , 3 , { 0 , 0 , 0 } } ,
{ " server_chanmode_change " , " {netsplit ServerMode}/{channelhilight $0} {mode $1} by {nick $2} " , 3 , { 0 , 0 , 0 } } ,
{ " channel_mode " , " mode/{channelhilight $0} {mode $1} " , 2 , { 0 , 0 } } ,
2000-10-27 21:52:16 -04:00
{ " bantype " , " Ban type changed to {channel $0} " , 1 , { 0 } } ,
{ " no_bans " , " No bans in channel {channel $0} " , 1 , { 0 } } ,
{ " banlist " , " {channel $0}: ban {ban $1} " , 2 , { 0 , 0 } } ,
2000-12-02 21:20:38 -05:00
{ " banlist_long " , " {channel $0}: ban {ban $1} {comment by {nick $2}, $3 secs ago} " , 4 , { 0 , 0 , 0 , 1 } } ,
2000-10-27 21:52:16 -04:00
{ " ebanlist " , " {channel $0}: ban exception {ban $1} " , 2 , { 0 , 0 } } ,
2000-12-02 21:20:38 -05:00
{ " ebanlist_long " , " {channel $0}: ban exception {ban $1} {comment by {nick $2}, $3 secs ago} " , 4 , { 0 , 0 , 0 , 1 } } ,
2000-10-27 21:52:16 -04:00
{ " invitelist " , " {channel $0}: invite {ban $1} " , 2 , { 0 , 0 } } ,
{ " no_such_channel " , " {channel $0}: No such channel " , 1 , { 0 } } ,
{ " channel_synced " , " Join to {channel $0} was synced in {hilight $1} secs " , 2 , { 0 , 2 } } ,
2000-05-15 04:25:45 -04:00
/* ---- */
{ NULL , " Nick " , 0 } ,
2000-12-02 21:20:38 -05:00
{ " usermode_change " , " Mode change {mode $0} for user {nick $1} " , 2 , { 0 , 0 } } ,
{ " user_mode " , " Your user mode is {mode $0} " , 1 , { 0 } } ,
2000-05-15 04:25:45 -04:00
{ " away " , " You have been marked as being away " , 0 } ,
{ " unaway " , " You are no longer marked as being away " , 0 } ,
2000-10-27 21:52:16 -04:00
{ " nick_away " , " {nick $0} is away: $1 " , 2 , { 0 , 0 } } ,
{ " no_such_nick " , " {nick $0}: No such nick/channel " , 1 , { 0 } } ,
{ " your_nick " , " Your nickname is {nick $0} " , 1 , { 0 } } ,
{ " nick_in_use " , " Nick {nick $0} is already in use " , 1 , { 0 } } ,
{ " nick_unavailable " , " Nick {nick $0} is temporarily unavailable " , 1 , { 0 } } ,
2000-12-02 21:20:38 -05:00
{ " your_nick_owned " , " Your nick is owned by {nick $3} {comment $1@$2} " , 4 , { 0 , 0 , 0 , 0 } } ,
2000-05-15 04:25:45 -04:00
/* ---- */
{ NULL , " Who queries " , 0 } ,
2000-12-02 21:20:38 -05:00
{ " whois " , " {nick $0} {nickhost $1@$2}%: ircname : $3 " , 4 , { 0 , 0 , 0 , 0 } } ,
{ " whowas " , " {nick $0} {nickhost $1@$2}%: ircname : $3 " , 4 , { 0 , 0 , 0 , 0 } } ,
2000-07-18 19:35:04 -04:00
{ " whois_idle " , " idle : $1 days $2 hours $3 mins $4 secs " , 5 , { 0 , 1 , 1 , 1 , 1 } } ,
2000-12-02 21:20:38 -05:00
{ " whois_idle_signon " , " idle : $1 days $2 hours $3 mins $4 secs {comment signon: $5} " , 6 , { 0 , 1 , 1 , 1 , 1 , 0 } } ,
{ " whois_server " , " server : $1 {comment $2} " , 3 , { 0 , 0 , 0 } } ,
2000-10-27 21:52:16 -04:00
{ " whois_oper " , " : {hilight IRC operator} " , 1 , { 0 } } ,
2000-08-10 08:23:56 -04:00
{ " whois_registered " , " : has registered this nick " , 1 , { 0 } } ,
2000-05-15 04:25:45 -04:00
{ " whois_channels " , " channels : $1 " , 2 , { 0 , 0 } } ,
{ " whois_away " , " away : $1 " , 2 , { 0 , 0 } } ,
{ " end_of_whois " , " End of WHOIS " , 1 , { 0 } } ,
2000-06-10 17:40:00 -04:00
{ " end_of_whowas " , " End of WHOWAS " , 1 , { 0 } } ,
{ " whois_not_found " , " There is no such nick $0 " , 1 , { 0 } } ,
2000-12-02 21:20:38 -05:00
{ " who " , " {channelhilight $[-10]0} %|{nick $[!9]1} $[!3]2 $[!2]3 $4@$5 {comment {hilight $6}} " , 7 , { 0 , 0 , 0 , 0 , 0 , 0 , 0 } } ,
2000-05-15 04:25:45 -04:00
{ " end_of_who " , " End of /WHO list " , 1 , { 0 } } ,
/* ---- */
{ NULL , " Your messages " , 0 } ,
2000-12-02 21:20:38 -05:00
{ " own_notice " , " {ownnotice notice $0}$1 " , 2 , { 0 , 0 } } ,
2000-10-27 21:52:16 -04:00
{ " own_action " , " {ownaction $0}$1 " , 2 , { 0 , 0 } } ,
2000-12-02 21:20:38 -05:00
{ " own_ctcp " , " {ownctcp ctcp $0}$1 $2 " , 3 , { 0 , 0 , 0 } } ,
{ " own_wall " , " {ownwall Wall $0}$1 " , 2 , { 0 , 0 } } ,
2000-05-15 04:25:45 -04:00
/* ---- */
{ NULL , " Received messages " , 0 } ,
2000-10-27 21:52:16 -04:00
{ " notice_server " , " {servernotice $0}$1 " , 2 , { 0 , 0 } } ,
2000-11-02 12:50:51 -05:00
{ " notice_public " , " {notice $0{pubnotice_channel $1}}$2 " , 3 , { 0 , 0 , 0 } } ,
{ " notice_public_ops " , " {notice $0{pubnotice_channel @$1}}$2 " , 3 , { 0 , 0 , 0 } } ,
2000-12-02 21:20:38 -05:00
{ " notice_private " , " {notice $0{pvtnotice_host $1}}$2 " , 3 , { 0 , 0 , 0 } } ,
2000-10-27 21:52:16 -04:00
{ " action_private " , " {pvtaction $0}$2 " , 3 , { 0 , 0 , 0 } } ,
{ " action_private_query " , " {pvtaction_query $0}$2 " , 3 , { 0 , 0 , 0 } } ,
{ " action_public " , " {pubaction $0}$1 " , 2 , { 0 , 0 } } ,
{ " action_public_channel " , " {pubaction $0{msgchannel $1}}$2 " , 3 , { 0 , 0 , 0 } } ,
2000-05-15 04:25:45 -04:00
/* ---- */
{ NULL , " CTCPs " , 0 } ,
2000-10-27 21:52:16 -04:00
{ " ctcp_reply " , " CTCP {hilight $0} reply from {nick $1}: $2 " , 3 , { 0 , 0 , 0 } } ,
{ " ctcp_reply_channel " , " CTCP {hilight $0} reply from {nick $1} in channel {channel $3}: $2 " , 4 , { 0 , 0 , 0 , 0 } } ,
{ " ctcp_ping_reply " , " CTCP {hilight PING} reply from {nick $0}: $1.$[-3.0]2 seconds " , 3 , { 0 , 2 , 2 } } ,
2000-12-02 21:20:38 -05:00
{ " ctcp_requested " , " {ctcp >>> {hilight $0} {comment $1} requested {hilight $2} from {nick $3}} " , 4 , { 0 , 0 , 0 , 0 } } ,
2000-05-15 04:25:45 -04:00
/* ---- */
{ NULL , " Other server events " , 0 } ,
2000-10-27 21:52:16 -04:00
{ " online " , " Users online: {hilight $0} " , 1 , { 0 } } ,
2000-05-15 04:25:45 -04:00
{ " pong " , " PONG received from $0: $1 " , 2 , { 0 , 0 } } ,
2000-11-05 07:36:58 -05:00
{ " wallops " , " {wallop WALLOP {wallop_nick $0}} $1 " , 2 , { 0 , 0 } } ,
{ " action_wallops " , " {wallop WALLOP {wallop_action $0}} $1 " , 2 , { 0 , 0 } } ,
2000-12-02 21:20:38 -05:00
{ " kill " , " You were {error killed} by {nick $0} {nickhost $1} {reason $2} {comment Path: $3} " , 4 , { 0 , 0 , 0 , 0 } } ,
{ " kill_server " , " You were {error killed} by {server $0} {reason $1} {comment Path: $2} " , 3 , { 0 , 0 , 0 } } ,
2000-11-25 20:30:05 -05:00
{ " error " , " {error ERROR} $0 " , 1 , { 0 } } ,
2000-05-15 04:25:45 -04:00
{ " unknown_mode " , " Unknown mode character $0 " , 1 , { 0 } } ,
2000-10-27 21:52:16 -04:00
{ " not_chanop " , " You're not channel operator in {channel $0} " , 1 , { 0 } } ,
2000-05-15 04:25:45 -04:00
/* ---- */
{ NULL , " Misc " , 0 } ,
2000-10-27 21:52:16 -04:00
{ " silenced " , " Silenced {nick $0} " , 1 , { 0 } } ,
{ " unsilenced " , " Unsilenced {nick $0} " , 1 , { 0 } } ,
{ " silence_line " , " {nick $0}: silence {ban $1} " , 2 , { 0 , 0 } } ,
2000-10-01 17:00:59 -04:00
2000-05-15 04:25:45 -04:00
{ NULL , NULL , 0 }
2000-05-15 04:40:46 -04:00
} ;