22 March 2012

Tengok2 Le Ape Yg Patut...N Edit

on *:start:{
  server <network1>
  server -m <network2>
  server -m <network3>
  server -m <network4>
}
on ^*:notice:*nick*is registered*:*:{
  if $nick == Nickserv {    .msg $nick identify <password>  }
  else {    .msg $me 4 $nick attempted to get your password on $network  }
}
on *:connect:{
  if <network1> isin $network {    .oper <name> <password>  }
  elseif <network2> isin $network {    .oper <name> <password>  }
  var %nick = $readini(Disconnect.ini,n,$network,Nick)
  if %nick != $me {    .nick $v1  }
}
on *:snotice:%nick * is already in use* {
  .msg nickserv ghost %nick
}
on *:notice:Ghost with your nick has been killed*:*:{
  .nick %nick
}
on *:disconnect:{
  if $me && $network {
    .writeini -n Disconnect.ini $network Nick $me
    var %a = 1, %b = $chan(0)
    while %a <= %b {
      .writeini -n Disconnect.ini $network $+(Channel,%a) $chan(%a) $chan(%a).key
      inc %a
    }
  }
}

No comments: