# Datafile for ho-reformat.pl, server notice reformatting. # Part of the Hybrid Oper Script Collection. # See http://www.garion.org/irssi/hosc.php for the full archive. # ------------------------------------------------------------------- # This is a Hybrid 7 specific datafile. # Created by Garion. # NOTE: You really need to customise this entire file to your # personal needs. # ------------------------------------------------------------------- # Lines beginning with a # are ignored, as are empty lines. # Data formats consist of 4 lines: # - the (unique!) name plus (optional) options. # - the regexp to match the received server notice with. # - the format in which to display the message. # - the name(s) of the window to display the message to plus (optional) # the message level of the message. # The options behind the name are, for now, only "continuematching". # If this is present, the script will continue matching if this regexp # has been matched. The default behaviour is to stop once a match has been # found. # In the format, $0 is the server tag, and $1 .. $n are the matched strings # of the regular expression. # Message level is CRAP by default. Use "MSG" to get a normal message # hilight, and HILIGHT for a hilight. # Use any number of target windows to send the message to. For example, # "client local HILIGHT" will send the reformatted notice to both the windows # 'client' and 'local' with message level HILIGHT. # There is one special window, which is "devnull". If a matched server # notice has "devnull" as target, this notice will be discarded. # The letter in square brackets in the comment is the user mode that needs # to be set to see these messages. # Default target window names (incomplete list): # client - connect, quit, spoof # kill - kill, kline # warning - possible flood # oper - oper, failed oper # server - netsplit, netjoin # rest - the rest client_connect Client connecting at (.*): (.*) [%GCONN%n/$1] $2 FILTER nickserv_exit Client exiting (?:at [a-zA-Z.]*)?: (.*) \(Killed \(NickServ \((.*)\)\)\) [%rEXIT%n/nickserv] $1 :: $2 FILTER2 client_exit Client exiting at ([a-zA-Z.]+): ([^(]+) \((.+)\) [%rEXIT%n/$1] $2 :: $3 FILTER client_connect_local Client connecting on port (\d+): (.+) \((.+)\@(.+)\) \[clients\] [%GCONN%n/local] $2!$3@$4 FILTER client_exit_local Client exiting: ([^(]+) \((.+)\@(.+)\) (.+) [%rEXIT%n/local] $1!$2@$3 :: $4 FILTER nick_change (.*) \((.*@.*)\) has changed his/her nickname to (.*) [%cNICK%n] $1 => $3 :: $2 FILTER gzline Global Z:line added for (\*@.*) on (.*) \(from ([a-zA-Z.]*) to expire at (.*): (.*)\) [%rGZLINE%n/add] $1 @ $3 (exp: $4) :: $5 FILTER2 degzline Expiring Global Z:Line \((\*@.*)\) made by ([a-zA-Z.]*) \(Reason: (.*)\) set (.*) ago [%GGZLINE%n/exp] $1 @ $2 ($4) :: $3 FILTER2 nickserv_kill Received KILL message for (.*) from NickServ Path: .*!Services!NickServ \((.*)\) [%rKILL%n/nickserv] $1 :: $2 FILTER2 kill Received KILL message for (.*) [%rKILL%n] $1 FILTER gline G:Line added for (.*) [%BGLINE%n/add] $1 FILTER2 gline_expire Expiring G:Line (.*) [%gGLINE%n/exp] $1 FILTER2 spam \[Spamfilter\] (.*) matches filter '(.*)': (.*) [%rSPAM%n] $1 :: '$2' :: $3 FILTER2 oper_services_admin (.*) is now a services administrator (.*) [%POPER%n] +a $1 FILTER2 oper_server_admin (.*) is now a server admin [%yOPER%n] +A $1 FILTER2 oper_up (.*) is now an IRC operator. [%pOPER%n] +o $1 FILTER2 # Catchall for the rest # EOF