Code:
on *:text:*ss*(xyz):#news:{
  scid 1 msg #allnews [ $+ $time(hh:nntt) $+ ] $1- :
  scid 1 msg #grabnews [ $+ $time(hh:nntt) $+ ] $1- }
}


You can just do it like this (and this is assuming the (tag) is a separate "word" at the end of each line):

Code:
on *:text:*ss*:#news:{
  var %newstag = $right($left($gettok($1-,-1,32),-1),-1)
  if (%newstag == xyz || %newstag == abc) {
    scid 1 msg #allnews [ $+ $time(hh:nntt) $+ ] $1- :
    scid 1 msg #grabnews [ $+ $time(hh:nntt) $+ ] $1- }
  }
}


And if all tagged news items should be sent to those same two channels, just make an alias:

Code:
on *:text:*ss*:#news:{
  var %newstag = $right($left($gettok($1-,-1,32),-1),-1)
  if (%newstag == xyz || %newstag == abc) { newsecho }
}
alias -l newsecho {
  scid 1 msg #allnews [ $+ $time(hh:nntt) $+ ] $1- :
  scid 1 msg #grabnews [ $+ $time(hh:nntt) $+ ] $1- }
}

Last edited by 5618; 22/06/07 08:40 AM.