mIRC Home    About    Download    Register    News    Help

Print Thread
re custom window #1472 13/12/02 11:54 AM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
My IRCd is Unreal3.2 my Services package is Auspices

and what id like to do is have the operserv notices go to a custom created window
so you can go to that window and see the oper notices in a special place

{07:45} -irc.myservername.net- *** Notice -- Client exiting: JoyousSpirit (JoyousSpir@sdn-ap-036dcwashP0092.dialsprint.net) [Quit: JoyousSpirit]

thats the format of what they mean,
anyone have any ideas?

Re: re custom window #1473 13/12/02 12:15 PM
Joined: Dec 2002
Posts: 111
F
Frog Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Yeah, try this:

on *:snotice:*:{
if (!$window(@Oper)) {
window -ak0 @Oper
}
aline -p @Oper $1-
}


Experience The Void.. Are You Ready?
Re: re custom window #1474 13/12/02 12:30 PM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Here are the steps to write a filter:
  1. Grab the SNotice you want to write the filter for and put it on a comment line
  2. Remove the -server- part (which will be $nick if you need to use it in your echo later)
  3. Change all * characters into ? (usually just the first 3)
  4. Change all : characters to ? (throughout the entire line - very important)
  5. Change ALL variable data to * or a mask that will fit (like *@*) the data
  6. Put on *:SNOTICE: on the front and : on the end of the line
  7. Ensure that the window to which you want to reroute the message is open
  8. Create your formatted echo line from the original SNotice; remember that everything separated by a space is its own "word", including the leading ***
  9. Halt the SNotice
  10. 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]
Code:

;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))
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C