Open Source Echos

By FreeHuman on Nov 25, 2011

Open Source Echos.Include: Text,Join,Part,/me Actions,Mode,Ban,UnBan,Op,DeOp,Voice,DeVoice,Invite,Kick,Topic Echos.You Can Change All Of That Open Sourced Echos

#opensource off
ON ^1:JOIN:*: {
  if ( $nick != $me ) {
    echo 3 # * $nick ( $+ $address $+ ) has joined # 
    haltdef
  }
}

ON ^1:PART:*: {
  if ( $1 == $null ) {
    if ( $nick isop $chan ) {
      echo 3 # * @ $+ $nick ( $+ $address $+ ) has left # 
      haltdef
    }
    elseif ( $nick isvoice $chan ) {
      echo 3 # * + $+ $nick ( $+ $address $+ ) has left # 
      haltdef
    }
    elseif ( $nick isreg $chan ) {
      echo 3 # * $nick ( $+ $address $+ ) has left # 
      haltdef
    }
  }
  else { 
    if ( $nick isop $chan ) {
      echo 3 # * @ $+ $nick ( $+ $address $+ ) has left # ( $+ $1- $+ ) 
      haltdef
    }
    elseif ( $nick isvoice $chan ) {
      echo 3 # * + $+ $nick ( $+ $address $+ ) has left # ( $+ $1- $+ ) 
      haltdef
    }
    elseif ( $nick isreg $chan ) {
      echo 3 # * $nick ( $+ $address $+ ) has left # ( $+ $1- $+ ) 
      haltdef
    }
  }
}

ON ^1:TEXT:*:*: {
  if ( $nick isop $chan ) {
    echo # <@ $+ $nick $+ > $1- 
    haltdef
  }
  elseif ( $nick isvoice $chan ) {
    echo # <+ $+ $nick $+ > $1- 
    haltdef
  }
  elseif ( $nick isreg $chan ) {
    echo # < $+ $nick $+ > $1- 
    haltdef
  }
}

ON ^1:ACTION:*:*: {
  if ( $nick isop $chan ) {
    echo 6 # * @ $+ $nick $1- 
    haltdef
  }
  elseif ( $nick isvoice $chan ) {
    echo 6 # * + $+ $nick $1- 
    haltdef
  }
  elseif ( $nick isreg $chan ) {
    echo 6 # * $nick $1- 
    haltdef
  }
}

ON ^1:MODE:*: {
  echo 3 # * $nick sets mode: $1-
  haltdef
}

ON ^1:BAN:*: {
  echo 3 # * $nick sets mode: +b $banmask
  haltdef
}

ON ^1:UNBAN:*: {
  echo 3 # * $nick sets mode: -b $banmask
  haltdef
}

ON ^1:OP:*: {
  echo 3 # * $nick sets mode: +o $opnick
  haltdef
}

ON ^1:DEOP:*: {
  echo 3 # * $nick sets mode: -o $opnick
  haltdef
}

ON ^1:VOICE:*: {
  echo 3 # * $nick sets mode: +v $vnick
  haltdef
}

ON ^1:DEVOICE:*: {
  echo 3 # * $nick sets mode: -v $vnick
  haltdef
}

ON ^1:INVITE:*: {
  echo 3 -s # * $nick ( $+ $address $+ ) invites you to join $chan
  haltdef
}

ON ^1:KICK:*: {
  echo 3 # * $knick was kicked by $nick ( $+ $1- $+ )
  haltdef
  if ( $knick == $me ) {
    echo 3 -s * You were kicked from # by $nick ( $+ $1- $+ )
    haltdef
  }
}

ON ^1:TOPIC:*: {
  echo 3 # * $nick changes topic to ' $+ $1- $+ '
  haltdef
}

#opensource end

menu * { 
  Open Source Echos
  .$iif($group(#opensource).status == on,$style(1)) On: .enable #opensource | linesep | echo 3 -ag * Open Source Echos Has Been Enabled | linesep
  .$iif($group(#opensource).status == off,$style(1)) Off: .disable #opensource | linesep | echo 2 -ag * Open Source Echos Has Been Disabled | linesep
}

Comments

Sign in to comment.
Protheus   -  Nov 26, 2011

Why not just do raws?

 Respond  
Jethro   -  Nov 25, 2011

You have more than one check for OP, which is deemed redundant. Not all the events are covered.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.