All pastes #986181 Raw Edit

Someone

public text v1 · immutable
·published 2008-04-15 16:35 UTC
rendered paste body
menu * {
  .Gathers
  ..Auto-Add:/set %chank_m $active | echo -a 3Auto-Add is rady on $chan
  ..Auto-Sub:/set %GathersAuto $active | echo -a 3Auto-Sub is searching on $chan
  ..Stop:/unset %GathersAuto , %chank_m | echo -a 4Auto-Sub and Auto-Add is OFF
  -
}
on *:notice:*:#:{
  if (*Sub is needed* iswm $1-) && (# == %GathersAuto) {
    set %GathersAuto $chan 1
  }
}
on *:RAWMODE:*:{
  if (%chank_m == $chan) && (*-*m*N* iswm $1-) { 
    .timer -m 1 600 msg $chan !add
    .timer -m 1 1200  msg $chan !add
    .timer -m 1 1800  msg $chan !add
    .timer 1 3 unset %chank_m 
  }
  if ($gettok(%GathersAuto,2,32) == 1) && (*-*m*N* iswm $1-) { 
    .timer -m 1 600  msg $chan !sub
    .timer -m 1 1200 msg $chan !sub
    .timer 1 3 unset %GathersAuto
  }
}