Here are the steps to write a filter:
- Grab the SNotice you want to write the filter for and put it on a comment line
- Remove the -server- part (which will be $nick if you need to use it in your echo later)
- Change all * characters into ? (usually just the first 3)
- Change all : characters to ? (throughout the entire line - very important)
- Change ALL variable data to * or a mask that will fit (like *@*) the data
- Put on *:SNOTICE: on the front and : on the end of the line
- Ensure that the window to which you want to reroute the message is open
- Create your formatted echo line from the original SNotice; remember that everything separated by a space is its own "word", including the leading ***
- Halt the SNotice
- Delete the comment line with the original message AFTER you've verified that it works properly
Below, I'll show each step along the way in a new comment line to show you the gist. These comment lines should, of course, be deleted when everything works.[color:#003300]
;1. -irc.myservername.net- *** Notice -- Client exiting: JoyousSpirit (JoyousSpir@sdn-ap-036dcwashP0092.dialsprint.net) [Quit: JoyousSpirit]
;2. *** Notice -- Client exiting: JoyousSpirit (JoyousSpir@sdn-ap-036dcwashP0092.dialsprint.net) [Quit: JoyousSpirit]
;3. ??? Notice -- Client exiting: JoyousSpirit (JoyousSpir@sdn-ap-036dcwashP0092.dialsprint.net) [Quit: JoyousSpirit]
;4. ??? Notice -- Client exiting? JoyousSpirit (JoyousSpir@sdn-ap-036dcwashP0092.dialsprint.net) [Quit? JoyousSpirit]
;5. ??? Notice -- Client exiting? * (*@*) [Quit? *]
;6. on *:SNOTICE:??? Notice -- Client exiting? * (*@*) [Quit? *]:{
;
on *:SNOTICE:??? Notice -- Client exiting? * (*@*) [Quit? *]:{
OperWin
echo -ti2 @OperNotices [CExit] $6-7
halt
}
alias OperWin if (!$window(@OperNotices)) {
window -ekn @OperNotices
titlebar @OperNotices on $server $+([,$network,]) $+($chr(40),$usermode,$chr(41))
}