Method code for $command_cache.set_command_modules()

[Turn off line numbering]
  1: arg name, definer, value;
  2: var m;
  3: 
  4: switch (value[1]) {
  5:     case 'set:
  6:         for m in (modules.set_difference(value[2]))
  7:             .del_command_module(m);
  8:         for m in (value[2].set_difference(modules))
  9:             .add_command_module(m);
 10:     case 'add:
 11:         .add_command_module(value[2]);
 12:     case 'del:
 13:         .del_command_module(value[2]);
 14:     default:
 15:         throw(~type, "Unknown action: " + value[1]);
 16: }

// Created 18-Sep-1997 as a part of ColdCore, see: @help Credit

Tlon