All pastes #988184 Raw Edit

Someone

public text v1 · immutable
#988184 ·published 2008-04-17 11:20 UTC
rendered paste body
#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.AutoAdd == on) {
    msg #VGames.Gathers !add
    msg #VGames.Gathers !add
    msg #VGames.Gathers !add
    unset %Gather.AutoAdd
    .disable #Add
    echo -at 7,1[15«0 VGames - AutoAdd is Now Disabled! 15,1»7]
  }
  elseif (*-m*+M* iswm $1-) && (!%Gather.AutoAdd) && (!%Gather.AutoSub) { halt }
}
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]
}