All pastes #613105 Raw Edit

Something

public text v1 · immutable
·published 2007-07-10 20:18 UTC
rendered paste body
on *:text:!joinscripton:#: {
  if (%onjoinscript [ $+ [ $chan ] ] == on) { .notice $nick  The on join script for $chan is already on }
  if (%pestcontroloffon [ $+ [ $chan ] ] == on) { halt } 
  if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { 
    set %onjoinscript [ $+ [ $chan ] ] on
    .msg $chan The on join script for $chan is now on. 
  }
}
on *:text:!joinscriptoff:#: {
  if (%onjoinscript [ $+ [ $chan ] ] == off) { .notice $nick  The on join script for $chan is already off }
  if (%pestcontroloffon [ $+ [ $chan ] ] == off) { halt } 
  if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { 
    set %onjoinscript [ $+ [ $chan ] ] off
    .msg $chan The on join script for $chan is now off. 
  }
}
on $*:TEXT:/^(!part|!gtfo|!leave)/Si:#: {
  if ($nick isreg $chan || $nick isvoice $chan) { notice $nick Sorry $nick to make me leave you have to have op/half-op status. | halt }
  if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $me) {
    .msg $chan Goodbye $chan i enjoyed my stay, i was told to part by $nick $+ .
    /part $chan
  }
}
on *:join:#: { 
  if ($chan == #bots) { halt }
  if ($chan == #bot) { halt }
  if ($nick == |God|Bot|) { halt }
  if ($nick == aturner44) {
    msg $chan ATENTIION ELETRIC_GOD has joined $chan $+ , respect Eletric_God as he is my owner ATENTIION
  }
  if ($nick == [-sword-]) {
    msg $chan ATENTIION Aturner44 has joined $chan $+ , respect [-Sword-] as he is a anoying noob:P
  }
  else {
    if (%onjoinscript == off) { halt }
    if ($chan == #80+) { notice $nick Hello and welcome $nick to $chan $+ , i am |ELETRIC|GOD|BOT| | notice $nick If you want to join a clan please pm eletric_god for more information! | halt }
    /notice $nick Hello and welcome $nick to $chan $+ , i am |ELETRIC|GOD|BOT| hello
  }
  on *:part:#: { 
    if ($address($nick,2) == $address($me,2)) { halt } 
    if ($nick == $me) { halt }
    /notice $nick Thankyou for visiting $chan $+ , please come again.
  }
}