// Adds a list of aliases to be deleted (cleared from saved.cfg) on every quit.
// Do not modify. (unless you really know what you're doing)

persistidents 0

const addListOnQuit [ alias_list = $arg1; loop al (listlen $alias_list) [ addOnQuit (concat delalias (at $alias_list $al)) ] ]

const on_quit_aliases [
  _demofile __screenshottype
  acc1 acc2 acc3
  badargs cc1 cc2
  cc3 cdirlist cmapp
  cs_sets cs_newsets customphud
  custompwld customprimarydirs dirtotry
  gametimestart i len
  li modifier nargs
  needsswitch numcla numrvsf
  preload_music r s
  sbdesc sbdns sbport
  tmp tmpCCO tmp_botmap
  tmp_botskill tmp_cl tmp_cradius
  tmp_ff tmp_gamma_list tmp_hex
  tmpmode tmp_mode tmp_mrem
  tmp_numargs tmp_numbots tmp_old_sets
  tmp_sum tmp_svol tmp_wc
  marg1 marg2 marg3
  targ1 targ2
  svdata svpass
  addListOnQuit on_quit_aliases
]

addListOnQuit $on_quit_aliases
addOnQuit [ delalias alias_list ]

persistidents 1
