All pastes #263434 Raw Edit

Something

public text v1 · immutable
·published 2006-12-01 15:20 UTC
rendered paste body
on *:TEXT:*!setnews *:#: {
  if ($nick == ericchapman0)($nick isop $chan) {
    set %news on 
    set %news $2- 
    msg $chan Global: 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 }
  msg $chan [**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
      }
    }
  }
}