All pastes #159761 Raw Edit

Mine

public text v1 · immutable
·published 2006-09-03 13:59 UTC
rendered paste body
on *:TEXT:*!setnews *:#: {
  if ($nick isop $chan) {
    set %news on 
    set %news $2- 
    notice $nick The news has been set to $2- $+
  }

}
on *:TEXT:*!clannews*:#: {
  If ( [ %news [ $+ [ $chan ] ] ] == off) { halt }
Notice $nick [**News**] %news }
}

}

}
on *:JOIN:*:{
If ( [ %news [ $+ [ $chan ] ] ] == off) { halt }
Notice $nick [**NEWS**]: %News 
} 

on *:text:!news*:#:{
  if ($nick isop $chan) {
    If ($2 == off) {
      If ( [ %news [ $+ [ $chan ] ] ] == off) {
        notice $nick News are already off for $chan
        } else {
        set [ %news [ $+ [ $chan ] ] ] off
        notice $nick News is now off for the channel $chan
      }
    }
    If ($2 == on) {
      If ( [ %news [ $+ [ $chan ] ] ] == on) {
        notice $nick News is already on for $chan
        } else {
        set [ %news [ $+ [ $chan ] ] ] on
        notice $nick News is now on for the channel $chan
      }
    }
  }
}