All pastes #511337 Raw Edit

Untitled

public text v1 · immutable
#511337 ·published 2007-05-26 11:36 UTC
rendered paste body

;filtering
;on *:text:*:#: { if (*test* iswm $strip($1-)) { echo -a yay } }

on *:text:*:#: {
  if ( %filtsys == on ) { 
    var %message $strip($1-) 

  }
}  
elseif ( test iswm %message ) {               
  echo -a string  %message
  /window @filter
  /aline -ahp @filter $date $timestamp < $nick > ||HIGHLIGHT|| => $chan >> $server 
  /aline -ahp @filter $date $timestamp < $nick > ||HIGHLIGHT|| => MESSAGE filter: 
  /aline -ahp @filter $date $timestamp < $nick > ||HIGHLIGHT|| => $(## $1- ##) 
}










;Menu Selection

menu MenuBar {
  $iif(%filtsys == on,$style(1)) Show Filter
  .$iif(%filtsys == on,Disable,Enable):/filtersys
}


;Alias

alias filtersys {
  set %filtsys $iif(%filtsys == on,off,on)
  echo -a Filter system is now %filtsys
}



on 1:LOAD:{ echo -a Thanks for using the pr0-talk-script: ...[Filtering-System]... written by Odysseus, vist www.pr0-talk.de | set %filtsys on }