All pastes #984714 Raw Edit

Untitled

public text v1 · immutable
·published 2008-04-14 14:42 UTC
rendered paste body
#Sub off
on *:text:*:#VGames.Gathers:{
  if (*sub is needed* iswm $strip($1-)) && ($nick == vG|Gathers) {
    set %Gather.AutoSub on
  }
}
#Sub end
#Add off
on *:notice:*:#VGames.Gathers:{
  if (*setting -m* iswm $strip($1-)) && ($nick == vG|Gathers) {
    set %Gather.AutoAdd on
  }
}
#Add end
on *:rawmode:#VGames.Gathers:{
  if (*-m*+N* iswm $1-) && (%Gather.AutoSub == on) {
    msg #VGames.Gathers !sub
    set %Gather.AutoSub off
    .disable #Sub
  }
  elseif (*-m*+N* iswm $1-) && (%Gather.AutoAdd == on) {
    msg #VGames.Gathers !add
    msg #VGames.Gathers !add
    set %Gather.AutoSub off
    .disable #Add
  }
}
menu channel {
  VGames  
  .VGames - AutoSub
  ..ON { .enable #Sub | echo -at 7,1[15«0 AutoSub is now Enabled! 15,1»7] }
  ..OFF { .disable #Sub | unset %Gather.AutoSub | echo -at 7,1[15«0 AutoSub is now Disabled! 15,1»7] }
  .VGames - AutoAdd
  ..ON { .enable #Add | echo -at 7,1[15«0 AutoAdd is now Enabled! 15,1»7] }
  ..OFF { .disable #Add | unset %Gather.AutoAdd | echo -at 7,1[15«0 AutoAdd is now Disabled! 15,1»7] }
  .VGames - Unset Add + Sub { .disable #Sub | .disable #Add | unset %Gather.Auto* | echo -at 7,1[15«0 AutoAdd and AutoSub are now Disabled! 15,1»7] }
}
alias Status {
  echo -at 7,1[15«0 VGames - AutoAdd Status: $upper($group(#sub).status) 15,1»7]
  echo -at 7,1[15«0 VGames - AutoAdd Status: $upper($group(#add).status) 15,1»7]
}